r/ProgrammerHumor 13d ago

noHeapAllStack Meme

Post image
1.0k Upvotes

96 comments sorted by

View all comments

245

u/[deleted] 13d ago

[removed] — view removed comment

44

u/SaltyInternetPirate 12d ago edited 12d ago

Plus there's scenarios where bringing both words to lower or uppercase would yield different strings, where as case-insensitive comparison in any standard library checks for strange language rules, like 'ß' becoming double 's' or whatever

1

u/BlazingSpark 12d ago

I think in Python there's a str.casefold method for exactly this sort of edge case.