DEV Community

Discussion on: JavaScript is not an untyped language

Collapse
 
mistval profile image
Randall

There's no avoiding misunderstandings, they can happen regardless of how precise your language is. There are times when correcting someone can be beneficial, and other times when you're just telling them things they already know, not doing anyone any good, and looking pedantic. Ultimately, that's a judgement call based on the unique circumstances of the situation. If someone says "JS doesn't have types", I think it's extremely likely that they are in fact aware that JS has strings, numbers, null, and undefined. There may be times when launching into a detailed explanation about it is helpful, but most of the time it's probably not.

Thread Thread
 
peerreynders profile image
peerreynders

I think there's also cultural issue; "correction" as a means asserting superiority but I think we need to move beyond that.

And perhaps in lieu of a "detailed explanation" sometimes it may make more sense to ask some questions in order to establish whether certain assumptions are actually shared.