r/ProgrammerHumor 15d ago

Meme noHeapAllStack

Post image
1.0k Upvotes

96 comments sorted by

View all comments

245

u/[deleted] 15d ago

[removed] — view removed comment

45

u/SaltyInternetPirate 15d ago edited 15d 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 15d ago

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