this post was submitted on 04 Jun 2025
166 points (98.3% liked)

Programmer Humor

36181 readers
224 users here now

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

Rules:

founded 5 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 21 points 3 days ago (3 children)

+ is overloaded for string concatenation, but - isn't so the interpreter coerces the "11" into a number first.

[–] [email protected] 1 points 1 day ago

Thanks for the explanation

[–] [email protected] 2 points 2 days ago

we have a concept for that in brazilian portuguese. it's called "gambiarra".