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

Validation in ocaml::sig? #129

Open
Lupus opened this issue May 9, 2023 · 0 comments
Open

Validation in ocaml::sig? #129

Lupus opened this issue May 9, 2023 · 0 comments
Labels
good first issue Good for newcomers

Comments

@Lupus
Copy link
Contributor

Lupus commented May 9, 2023

Would be nice of ocaml::sig performed some validation on the signatures provided, like: make sure number of constructors or struct fields match, or number of arguments for a function. One step further would be to check if trivial types are encoded correctly in ocaml::sig specification by the user (like those listed in type conversion table). If that's relative easy to do - would greatly reduce the space for typos.

Ideally no hand-annotations should be necessary and corresponding OCaml types should be fully inferred by the shapes and names of Rust types. Not sure if that's feasible though or how complex is it to implement if it is.

@zshipko zshipko added the good first issue Good for newcomers label May 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants