this post was submitted on 15 Sep 2023
447 points (84.2% liked)

Programmer Humor

19551 readers
1033 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 1 year ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 6 points 1 year ago* (last edited 1 year ago) (2 children)

Technically I don't think any Greek layout uses a different Unicode codepoint for the question mark. In fact, the ordinary semicolon symbol is used, so what the meme describes would probably not happen IRL.

Does all this make it any less funnier? No. It's still brilliant.

[–] luciferofastora 12 points 1 year ago (1 children)

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.

Source: https://en.wikipedia.org/wiki/Question_mark

I'm still curious whether it would be accepted by the code interpreters / compilers of various languages. I'm not bold enough to assume they all normalise properly.

[–] [email protected] 5 points 1 year ago

Wow, thank you, didn't know of that.

[–] [email protected] 7 points 1 year ago (1 children)

Unicode should have enforced the principle of using the same encoding for similar looking characters like they did with CJK instead of allowing bullshit like the Cyrillic "o" or the Greek question mark.

[–] [email protected] 1 points 1 year ago

1,000% percent.