Skip to content
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

Permit axiom without a compile block #1418

Merged
merged 1 commit into from
Jul 27, 2022
Merged

Conversation

paulcadman
Copy link
Collaborator

@paulcadman paulcadman commented Jul 27, 2022

An axiom without a compile block generates a C function signature
without a corresponding compile block body. This allows implementations to be injected
at link time (JS, Anoma).

It's hard to test this change until we can give exported symbols stable names. When this is in place we can write tests that inject implementations of axioms.

So this PR includes a test that the compiler doesn't throw an error when an axiom is encountered without a corresponding compile block.

Closes #1417
Closes #1388

@paulcadman paulcadman added this to the 0.2.3 milestone Jul 27, 2022
@paulcadman paulcadman self-assigned this Jul 27, 2022
@paulcadman paulcadman force-pushed the axiom-no-compile-1417 branch from 208d0c8 to 08cbaf7 Compare July 27, 2022 07:45
An axiom without a compile block generates a C function signature
without a corresponding body. This allows implementations to be injected
at link time (JS, Anoma).
@jonaprieto jonaprieto force-pushed the axiom-no-compile-1417 branch from 08cbaf7 to e34615e Compare July 27, 2022 08:24
@jonaprieto jonaprieto merged commit c630717 into main Jul 27, 2022
@jonaprieto jonaprieto deleted the axiom-no-compile-1417 branch July 27, 2022 08:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants