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

Propagate non-optional name to typed ast #374

Merged
merged 1 commit into from
Jan 10, 2024

Conversation

n-osborne
Copy link
Contributor

This PR completes #372.

It contains a breaking change in the typed AST.

Copy link
Contributor

@shym shym left a comment

Choose a reason for hiding this comment

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

I have a question and a suggestion.

  • That seems a very natural part of the changes started with Make with necessary when declaring type invariants. #372. Was there a reason we didn’t do it then? In particular, do we expect to break many things with that change? (The commit message could provide a bit of such context)
  • I would suggest merging print_invariant_vs into print_invariant; and, as part of reviewing old but moved code, I would have expected to see newline also in sep or is that implicitly done somewhere else?

Apart from those small remarks, this looks very good!

@n-osborne
Copy link
Contributor Author

n-osborne commented Jan 10, 2024

Thanks for the review :-)
I'm not sure why it was not done in the #372 (I think an oversight on my part 😅 )
It is expected to break Ortac/Wrapper as it reads the invariants. But nothing to hard to fix.

@n-osborne n-osborne force-pushed the invariant-bis branch 2 times, most recently from 38f14a4 to 86502ee Compare January 10, 2024 15:28
This commit completes the changes made in a previous PR (ocaml-gospel#372).
It contains the actual change in the typed ast and hence is expected to
break tools relying on the changed parts.
@n-osborne n-osborne merged commit 044f1d5 into ocaml-gospel:main Jan 10, 2024
3 checks passed
@n-osborne n-osborne deleted the invariant-bis branch January 10, 2024 16:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants