If the 'letter' classification is the same as used in .NET's unicode implementation, this info lists the categories of symbols that unicode classifies as letters:
https://docs.microsoft.com/en-us/dotnet/api/system.char.isletter?view=netframework-4.8 On Friday, 3 May 2019 17:11:55 UTC+2, Louki Sumirniy wrote: > > Oh, I *can* use UTF-8 in identifiers?? nooo: > > Identifiers name program entities such as variables and types. An > identifier is a sequence of one or more letters and digits. The first > character in an identifier must be a letter. > > identifier = letter { letter | unicode_digit } . > > > > ... > > > > Letters and digits > The underscore character _ (U+005F) is considered a letter. > > letter = unicode_letter | "_" . > decimal_digit = "0" … "9" . > octal_digit = "0" … "7" . > hex_digit = "0" … "9" | "A" … "F" | "a" … "f" . > > > but `unicode_letter` - what is that? Does that include such as æ ? If so > then I guess it would also allow ⻄ too. > > I have seen source code from chinese authors that has comments in cn > traditional. So does this mean, in theory, I can use any valid unicode > letter from alphabet (or even pictograpic) language scripts?? > > On Friday, 3 May 2019 16:43:09 UTC+2, Ian Lance Taylor wrote: >> >> On Fri, May 3, 2019 at 7:28 AM Louki Sumirniy >> <louki.sumi...@gmail.com> wrote: >> > >> > It would be incredibly computationally costly to add a natural language >> translator to the compilation process. I'm not sure, but I think also >> identifiers in Go can only be plain ASCII, ie pure latin script (and >> initial character must be a letter) >> >> That turns out not to be the case. The rules for identifiers are at >> https://golang.org/ref/spec#Identifiers, where the definition of >> "letter" is at https://golang.org/ref/spec#Characters . >> >> Ian >> > -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.