Restrictioncore-identifier-characters
A lower identifier is a letter of category Ll (which includes a, …, z) followed by a sequence of zero or more inner characters: letters, decimal digits and underbars _. An upper identifier is a letter of category Lu or Lt (which include A, …, Z) followed by a sequence of zero or more inner characters. A letter of category Lm or Lo may continue an identifier but not begin one, and no identifier begins with _. In either case reserved words are excluded, and no component of a long identifier may be a reserved word: thus List.if is not a long identifier.
Tests (1)
- elm / NonAsciiIdentifierTestA top-level value whose name contains a non-ASCII letter, `café`, is read as one identifier and can be referenced; the program logs its value, 7.
Discussions
Discuss this restriction·Search the discussions on GitHub
Discussions are on GitHub; one about this restriction has [res:core-identifier-characters] 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.