|
|
|
|
|
by dahfizz
2332 days ago
|
|
JavaScript is absolutely the problem. As pointed out, {}.foo will not cause an error. In Python and any good dynamic language, that will generate an error. Another problem is all the implicit (silent) type conversions. JavaScript will happily add an Object and an integer, then multiply that by a string. Any sensible type system would not allow that, but JavaScript silently produces a NaN. The problem isn't that its a dynamic type system, but that the type system ignores things which are clearly problems. |
|