bestelbus22@lemmy.world to Programmer Humor@lemmy.mlEnglish · 10 hours agoThe meaning of thislemmy.mlimagemessage-square50fedilinkarrow-up1382arrow-down110
arrow-up1372arrow-down1imageThe meaning of thislemmy.mlbestelbus22@lemmy.world to Programmer Humor@lemmy.mlEnglish · 10 hours agomessage-square50fedilink
minus-squarePennomi@lemmy.worldlinkfedilinkEnglisharrow-up8arrow-down2·edit-29 hours agoIn Python you can use 🍆 as a variable name. Edit: oops, guess I was mistaken, you can use most Unicode but emojis are not valid.
minus-squareCanadaPlus@lemmy.sdf.orglinkfedilinkarrow-up6·5 hours ago Edit: oops, guess I was mistaken, you can use most Unicode but emojis are not valid. That actually seems even more arbitrary. Like, do they just hate fun?
minus-squareCaptain Aggravated@sh.itjust.workslinkfedilinkEnglisharrow-up5·5 hours agoyou might be thinking of Rust.
minus-squareembed_me@programming.devlinkfedilinkarrow-up10·8 hours agoJust going by the reputation, you probably can do this in JavaScript
minus-squarescott@lemmy.orglinkfedilinkEnglisharrow-up3·6 hours ago~ $ python Python 3.12.10 (main, Apr 9 2025, 18:13:11) [Clang 18.0.3 (https://android.googlesource.com/toolchain/llvm-project d8003a456 on linux Type "help", "copyright", "credits" or "license" for more information. >>> ❗ = 'nah' File "<stdin>", line 1 ❗ = 'nah' ^ SyntaxError: invalid character '❗' (U+2757) >>> ~ $ node Welcome to Node.js v23.11.1. Type ".help" for more information. > const 👍 = 'test' const 👍 = 'test' ^ Uncaught SyntaxError: Invalid or unexpected token >
minus-squaremkwt@lemmy.worldlinkfedilinkarrow-up4·7 hours agoThe source character set is implementation defined.
In Python you can use 🍆 as a variable name.
Edit: oops, guess I was mistaken, you can use most Unicode but emojis are not valid.
That actually seems even more arbitrary. Like, do they just hate fun?
you might be thinking of Rust.
Just going by the reputation, you probably can do this in JavaScript
~ $ python Python 3.12.10 (main, Apr 9 2025, 18:13:11) [Clang 18.0.3 (https://android.googlesource.com/toolchain/llvm-project d8003a456 on linux Type "help", "copyright", "credits" or "license" for more information. >>> ❗ = 'nah' File "<stdin>", line 1 ❗ = 'nah' ^ SyntaxError: invalid character '❗' (U+2757) >>> ~ $ node Welcome to Node.js v23.11.1. Type ".help" for more information. > const 👍 = 'test' const 👍 = 'test' ^ Uncaught SyntaxError: Invalid or unexpected token >
C supremacy
The source character set is implementation defined.