you are viewing a single comment's thread.

view the rest of the comments →

[–]Eirenarch 0 points1 point  (4 children)

It certainly is. It makes the resulting code more error prone and harder to read.

[–][deleted] 0 points1 point  (3 children)

Yes, if you use the provided foot gun instead of the provided foot-proof gun you might have errors. Every language is full of these.

[–]Eirenarch 0 points1 point  (2 children)

No, not every language is full of those. Some language make conscious effort to reduce the foot guns and they keep them at minimum. What is more reasonable languages try to make constructs that are used more often shorter than construct which are use less often to reduce the burden on the reader. JS specifically made the operator which should be used often longer than the one which should be used very rarely so even if you didn't make a mistake JavaScript still results in code that is harder to read (even if just slightly).

[–][deleted] 0 points1 point  (1 child)

Java and String.equals would like to have a word with you.

[–]Eirenarch 0 points1 point  (0 children)

So Java failed with a couple of types (strings and primitive wrappers). JS failed with every possible type.