|
|
|
|
|
by tomatsu
3139 days ago
|
|
> why nobody has created a version of JavaScript that just throws exceptions for all the WTF cases? Google experimented with something they called "strong mode". Classes were read-only, accessing nonexistent properties was an error, and things like that. I liked it. Unfortunately, the experiment didn't go anywhere and strong mode was removed from Chrome. Dart is somewhat similar, though. It got more straightforward semantics than JS and most of those WTF things are an error. |
|