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

add ppx for int53p values #23

Open
haochenx opened this issue Dec 9, 2022 · 0 comments
Open

add ppx for int53p values #23

haochenx opened this issue Dec 9, 2022 · 0 comments

Comments

@haochenx
Copy link
Member

haochenx commented Dec 9, 2022

it's currently very cumbersome to write int53p literals, thus we'd like to create a ppx helping this.

proposed syntax: 123p.

semantics:

  • if the integer could be represented by int31, convert e.g. 123 it as (Kxclib.Int53p.of_int 123)
  • otherwise, convent e.g. 12345678901p it as (Kxclib.Int53p.of 12345678901L)
  • make sure handling (-123p) and (-12345678901L) as well
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

No branches or pull requests

1 participant