this post was submitted on 16 Jul 2023
659 points (92.3% liked)

Programmer Humor

32571 readers
506 users here now

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

Rules:

founded 5 years ago
MODERATORS
 

No offence

you are viewing a single comment's thread
view the rest of the comments
[–] Zucca@sopuli.xyz 3 points 1 year ago

Oh boy...

Imo, both methods should set the same value for x. That's madness. 🤪 Just look at awk for example. There's a dedicated substr() and it doesn't care about spaces. But then awk is quite loose in everything... and niche... But I love it.