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

Programmer Humor

32042 readers
1220 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] 4 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.