nkiesel
12/13/2021, 11:09 PM$
in identifiers (e.g. A$B
is a valid identifier). Kotlin allows quoted identifiers like ``A$B`` . But https://kotlinlang.org/spec/syntax-and-grammar.html#identifiers states that letters are "<any unicode character of classes LL, LM, LO, LT, LU or NL>" and that identifiers are "(Letter | '_'
) {Letter | '_'
| UnicodeDigit} | `'`'` QuotedSymbol {QuotedSymbol} `'`'` ". Does that not mean that e.g. Ⅲ (aka \u2162) - which is part of unicode character class NL - should be a valid identifier? I just tried but the compiler does not like val Ⅲ = "roman 3"
.ephemient
12/13/2021, 11:52 PMval _Ⅲ
doesn't work eithernkiesel
12/14/2021, 9:20 PMephemient
12/14/2021, 9:23 PMnkiesel
12/14/2021, 10:05 PM