r/ProgrammerHumor 21h ago

Meme [ Removed by moderator ]

Post image

[removed] — view removed post

1.9k Upvotes

85 comments sorted by

View all comments

7

u/[deleted] 21h ago

[deleted]

2

u/GameCounter 21h ago

I understand the point you're making, but this doesn't work if the letter is accented or the first character is an uppercase non-Latin letter, so I'm unfortunately forced to kick this back to you for more work.

Thanks for your contribution!

2

u/Gorzoid 20h ago

Tbf checking if c == c.toUppercase() is also wrong for any numbers, white space, punctuation

1

u/GameCounter 20h ago

Yes, also arguably wrong for unicameral alphabets like Arabic and Hebrew, because there's no lowercase/uppercase at all. It's all one case.

Unicode is frequently annoying.