this post was submitted on 16 Jul 2023
711 points (92.4% liked)

Programmer Humor

32383 readers
690 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
[–] [email protected] 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.