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

Binary literals #1215

Closed
blbarker opened this issue Aug 26, 2021 · 3 comments · Fixed by #1355
Closed

Binary literals #1215

blbarker opened this issue Aug 26, 2021 · 3 comments · Fixed by #1355

Comments

@blbarker
Copy link

We love that dhall supports hexadecimal literals with the 0x prefix (#858)

How about adding similar support for binary? with the 0b prefix? (ex. 0b1001 yields 9)

@Gabriella439
Copy link
Contributor

I'll close this in favor of #1179 and comment further on that issue

@blbarker
Copy link
Author

Blob types are also interesting, but not what I'm concerned with here. I'm just asking to consider integer syntax support of the "0b" prefix and have it behave just like the current 0x prefix. (like Python, or the GHC extension https://ghc.gitlab.haskell.org/ghc/doc/users_guide/exts/binary_literals.html) Thanks.

@Gabriella439 Gabriella439 reopened this Aug 26, 2021
@Gabriella439
Copy link
Contributor

Whoops, I misunderstood the request. Then I'll reopen this

Yeah, this seems like a fine feature to me because it's pretty easy to implement

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