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

' not allowed at the beginning of an identifier #328

Closed
fblanqui opened this issue Jul 24, 2024 · 1 comment · Fixed by #333
Closed

' not allowed at the beginning of an identifier #328

fblanqui opened this issue Jul 24, 2024 · 1 comment · Fixed by #333

Comments

@fblanqui
Copy link
Member

let ident = ['a'-'z' 'A'-'Z' '0'-'9' '_' '!' '?']['a'-'z' 'A'-'Z' '0'-'9' '_' '!' '?' '\'' ]*

it may be useful to write 'a like in ML and systems based on ML (Isabelle, HOL-Light, HOL4)

@GuillaumeGen
Copy link
Contributor

It clearly is possible and easy (you pointed the line to change).
Hence the question is do we want to do it.

Benefits : 'a becomes a valid identifier, allowing us to have code closer to Ocaml naming convention.
Drawbacks : we lose the ability to have a native type of characters with the 'a' syntax.

Since I see the point for translation to have a more idiomatic syntax and I hardly see someone adding a native type of characters in Dedukti, I am in favor of this change.

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 a pull request may close this issue.

2 participants