compiler
compiler copied to clipboard
Feature Request: Add binary literal
Quick Summary:
Add binary literal syntax to elm, such as 0b1010 would to 10 in decimal.
SSCCE
Enter the following in elm repl
> 0b111
|
-- WEIRD NUMBER ----------------------------------------------------------- REPL
I thought I was reading a number, but I ran into some weird stuff here:
3| 0b111
^
I recognize numbers in the following formats:
42
3.14
6.022e23
0x002B
So is there a way to write it like one of those?
- Elm: 0.19.1
- Browser: Firefox
- Operating System: Linux 5.11.4-arch1-1
Additional Details
Thanks for reporting this! To set expectations:
- Issues are reviewed in batches, so it can take some time to get a response.
- Ask questions in a community forum. You will get an answer quicker that way!
- If you experience something similar, open a new issue. We like duplicates.
Finally, please be patient with the core team. They are trying their best with limited resources.