this post was submitted on 04 Jun 2025
1021 points (98.6% liked)

Programmer Humor

23899 readers
1527 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 2 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[โ€“] [email protected] 3 points 2 days ago (1 children)
  • In https://lemm.ee/comment/20947041 they claimed "implicit type coercion" and showed many examples; they did NOT claim "string concatenation".
  • However, that was in reply to https://lemmy.world/comment/17473361 which was talking about "implicit conversion to string" which is a specific type of "implicit type coercion"; NONE of the examples given involved a conversion to string.
  • But also, that was in reply to https://lemm.ee/comment/20939144 which only mentions "implicit type coercion" in general.

So, I think probably everyone in the thread is "correct", but you are actually talking past one another.

I think the JS behavior is a bad design choice, but it is well documented and consistent across implementations.

[โ€“] [email protected] -1 points 2 days ago

Read the thread again, it seems you slipped somewhere. This was all about the claim that implicit conversion to string somehow could make sense.