Restrictioncore-constant-separated
A special constant, and the reserved word _, may not be followed immediately by an inner character, and the digits of an integer constant may be followed immediately by . only as part of a fraction; so 12abc, 1.x and _x are not sequences of items.
Tests (2)
- elm / ParseErrorNumberBadHexDigitTestA hexadecimal literal containing a non-hex digit, `0x1g`, is rejected with a WEIRD HEXIDECIMAL syntax error.
- elm / ParseErrorNumberFractionThenLetterTestA float literal followed directly by a letter, `1.5a`, is rejected with a WEIRD NUMBER syntax error.
Discussions
Discuss this restriction·Search the discussions on GitHub
Discussions are on GitHub; one about this restriction has [res:core-constant-separated] in its title.
A Standard Definition of Elm? (Draft version 0.4) © Rupert Smith. The text is licensed under CC BY 4.0: share and adapt it freely, with credit and a link to the licence.