oilshell / oil

Oils is our upgrade path from bash to a better language and runtime. It's also for Python and JavaScript users who avoid shell!
http://www.oilshell.org/
Other
2.78k stars 150 forks source link

emoji/unicode identifiers #1998

Open dezren39 opened 1 week ago

dezren39 commented 1 week ago

hi i assume you can't use emoji in identifiers, are there any future plans to support? i know you said utf-8 i didn't look up the grammar to confirm exactly but i assume you mean the simple utf-8 charset, the identifiers profile, but i wondered if enabling the emoji utf-8 profile would be worthwhile? idk the major differences, but you could even go further and just allow unicode utf-8 in general.

https://unicode.org/reports/tr31/#Emoji_Profile

var ☺ = "☺"
var 汉字微笑 = "汉字微笑"