this post was submitted on 16 Aug 2023
463 points (90.0% liked)

Programmer Humor

32555 readers
831 users here now

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

Rules:

founded 5 years ago
MODERATORS
 

TIL about the greek question mark

Tell me, can you tell the difference between these two characters?

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

you are viewing a single comment's thread
view the rest of the comments
[–] qaz@lemmy.world 95 points 1 year ago (2 children)

Every syntax highligher shows this and VSCode even has a special case for this, this is not a real issue.

[–] theKalash@feddit.ch 42 points 1 year ago

I just tried and it just turns into a proper semicolon and everything works. (Sublime Text).

That might explain that:

In Unicode, it is separately encoded as U+037E ; GREEK QUESTION MARK, but the similarity is so great that the code point is normalised to U+003B ; SEMICOLON, making the marks identical in practice.

[–] RickyRigatoni@lemmy.ml 2 points 1 year ago

Can you expect much else from someone who uses JS?