Y
Hacker News
new
|
ask
|
show
|
jobs
by
tomtomtom777
3568 days ago
That is why you should use string formatting instead of concatenation.
For string formatting, rendering "null" (or "") makes sense; for coercion not.
1 comments
richardwhiuk
3568 days ago
That just resolves into everyone always doing formatting, and never doing concatenation, which yields the same problem.
link