@[email protected] to Programmer [email protected]English • 11 days agoThe meaning of thislemmy.worldimagemessage-square71fedilinkarrow-up1475cross-posted to: [email protected]
arrow-up1475imageThe meaning of thislemmy.world@[email protected] to Programmer [email protected]English • 11 days agomessage-square71fedilinkcross-posted to: [email protected]
minus-squarePennomilinkfedilinkEnglish7•edit-211 days 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-square@[email protected]linkfedilink9•11 days 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-square@[email protected]linkfedilink8•11 days agoJust going by the reputation, you probably can do this in JavaScript
minus-square@[email protected]linkfedilinkEnglish4•11 days 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-square@[email protected]linkfedilink3•11 days 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?
Just going by the reputation, you probably can do this in JavaScript
C supremacy
The source character set is implementation defined.
you might be thinking of Rust.