Hacker News new | ask | show | jobs
by MoD411 3757 days ago
I love how every JS rant has type safety in it. You can immediately tell that "ranter" does not use JS. Dynamic types are one of the best parts of J s
3 comments

The article gives 8 examples of transpiled languages, 4 dynamically typed and 4 statically typed. There's no real preference for static typing, and in fact I'm a big fan of dynamic typing.

However, there's a difference between a strongly typed dynamic language and a weakly typed dynamic language. JavaScript is an example of the latter and it's done very badly (eg, inconsistent semantics). The lack of discipline makes it difficult to write safe, reliable software. Thus, JavaScript is ill-suited for serious software engineering.

??? I don't see any reference to type safety. Are we reading the same article?
MoD411 is referring to "loose typing and freewheeling coercions." This is not about "type safety." It's about having a predictable and reasonable binding of types. JavaScript is very sloppy in this respect, especially with regards to the underlying semantics.
Wish I could upvote twice.

Totally agree.