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

Primitive aliases #44

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

Conversation

nmatschke
Copy link

@nmatschke nmatschke commented Jul 15, 2024

This is a proposal for extending the syntax for external primitives, making it easier to re-bind them under a different identifier, without reiterating the entire description (type, attributes, and symbols).

Rendered version

(Thanks to @goldfirere for reviewing this RFC)

@OlivierNicole
Copy link

This seems useful and, from a distance, seems to be a straightforward change: as long as we have the info that a signature item is a primitive, I don’t see any obstacle to typechecking aliases of it.

@nojb
Copy link

nojb commented Jul 23, 2024

From a distance, this looks like a nice proposal that allows avoiding the error-prone duplication of external declarations. In favor!

@nmatschke
Copy link
Author

Thanks for the review so far. I have implemented this and opened PR #13377 against the main OCaml repo.

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.

3 participants