r/ProgrammerHumor • • Mar 20 '24

Meme areJSDevsActuallySane

Post image
14k Upvotes

554 comments sorted by

View all comments

Show parent comment

1

u/nommu_moose Mar 21 '24

I would argue that it should explicitly require a conversion to string. It would improve readability to no end, and make clearer the cause of issues if somebody messes that up and passes an unintended type.

It at least makes the mistake deliberate.