Skip to content

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.

@yallop yallop added the under-consideration The OCaml language committee is debating the subject label Mar 17, 2025
@clementblaudeau
Copy link
Contributor

Have you also considered extending the signature constraint mechanism S with external t = "foo" ? From a distance (I've never used externals), it seems like use-cases for this would appear with your extension ? I can help on that topic if needed.

@Octachron Octachron added positive-committee-recommendation and removed under-consideration The OCaml language committee is debating the subject labels Sep 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants