this post was submitted on 11 Oct 2024
832 points (98.3% liked)

Programmer Humor

32247 readers
306 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS
 

cross-posted from: https://lemmy.zip/post/24335357

you are viewing a single comment's thread
view the rest of the comments
[–] Faresh@lemmy.ml 9 points 4 days ago (7 children)

I think they exclude some unicode characters from being use in identifiers. At least last I tried it wouldn't allow me to use an emoji as a variable name.

[–] histic@lemmy.dbzer0.com 2 points 4 days ago (6 children)

Another guy just posted emojis in their code in the comments no idea if it actually works

[–] Faresh@lemmy.ml 8 points 4 days ago (5 children)

That code was C++ or something like that. Not GDScript.

I tested this on Godot 4.2.1. You can write identifiers using a different writing system other than latin and you are allowed to have emojis in strings, but you aren't allowed to use emojis in identifiers.

[–] histic@lemmy.dbzer0.com 4 points 4 days ago (1 children)

Ah I’m unfamiliar with most languages I just use python and random others for personal projects

[–] bleistift2@sopuli.xyz 1 points 3 days ago (1 children)

Coding must be a nightmare if you’re choosing programming languages at random 😱

But you must also be learning quite a lot.

[–] histic@lemmy.dbzer0.com 1 points 3 days ago

I’m not choosing at random lol that would be crazy but I mostly use python and have been teaching myself go and some rust

load more comments (3 replies)
load more comments (3 replies)
load more comments (3 replies)