-
Notifications
You must be signed in to change notification settings - Fork 78
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
C backend for Catala : the closure conversion strikes back #364
Conversation
Testing with dune exec catala -- Lcalc -s S tests/test_func/good/closure_conversion.catala_en --avoid_exceptions -O --closure_conversion
280368c
to
7702949
Compare
Merging this now because @adelaett depends on some of this code. |
@AltGr do you think you can review tomorrow to unblock Alain? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! I haven't reviewed the new Closure_conversion
code itself thoroughly, but this all looks pretty nice.
if not options.avoid_exceptions then | ||
Errors.raise_error | ||
"Option --avoid_exceptions must be enabled for \ | ||
--closure_conversion"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Might be worth having --avoid_exceptions
automatically be turned on in this case then ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since --avoid_exceptions
and --closure_conversion
are experimental these days I want the CLI to force users to actively activate both and not have them activated silently.
Follow up on #204.
Changelog