3 ms·
What about a whimsical emoji as a variable name? lol.
by danielvaughn 4y ago
What about a whimsical emoji as a variable name? lol.
- giraffe_lady 4y agoProbably not by itself but it isn't that fundamentally different from some language conventions allowing/preferring glyphs over words for certain meanings eg `string->int` rather than `stringToInt` or whatever.
- calvinmorrison 4y agoi was wrong, this doesn't work in perl
- int_19h 4y agoIt should work in Ruby tho, as everything above ASCII is valid identifier onset.
- politician 4y agoI reserve emoji for cases where the language's compiler fails to do type inference and forces me to create a temp variable.