What are the unicode characters tat can be used as identifier ?


What are the unicode characters tat can be used as identifier ?

Go allows to use unicode characters for function names. This is great because I can for instance create a function named héhé or with cyrilic or (I suppose) chinese characters. But we can't use a name composed of emoticons.

What are the unicodes characters that can be used ?

The Go language specification doesn't say much about the accepted characters (http://ift.tt/2k6MtrM)

Submitted July 11, 2017 at 01:31AM by chmikes
via reddit http://ift.tt/2sIiEPZ

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s