Emoji is been considered as comment
Unicode is been considered as comment.
class Hash alias #️⃣ to_hash end
when you require or load this file, will result in:
syntax error, unexpected end-of-input.
class Hash alias :"#️⃣" to_hash end
Thanks in advance <3.
Updated by naruse (Yui NARUSE) almost 8 years ago
It is spec.
At first the character is not Emoji.
The Unicode sequence "U+0023 U+20E3" consists of two Unicode codepoint:
U+0023 (NUMBER SIGN, '#'), and U+2E03 (COMBINING ENCLOSING KEYCAP).
Even if your environment shows the character as Emoji, it is not always an emoji.
And as above sequence, the character is considered as a variant of '#'.