Skip to content

Compile time check implementation #131

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

Compile time check implementation #131

wants to merge 4 commits into from

Conversation

tommymchugh
Copy link

Updated implementation from #114.

Resolves racket/racket#2996

Adds:
check-compile-time-exn
check-not-compile-time-exn

Comments and thoughts welcome!

In the latter case, the exception raised must be an @racket[exn:fail?].
}

@defform[(check-compile-time-exn (expr (-> any)))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Typo. Should be check-not-compile-time-exn.

[(_ expr:expr)
#:with loc (datum->syntax #f 'loc stx)
#'(let ([location (syntax->location #'loc)])
(with-check-info (['name 'check-compile-time-exn]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ditto.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! These should be fixed now.

@capfredf
Copy link
Member

capfredf commented Feb 4, 2022

This looks good

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

RackUnit check-exn fails to catch raised syntax error when error not called directly
3 participants