3 ms·
>It wasn't a "fragile edge case", it worked just fine with no ambiguity in every javascript implementation. Yes, it worked according to how the parser was desi
by batista 15y ago
>It wasn't a "fragile edge case", it worked just fine with no ambiguity in every javascript implementation.
Yes, it worked according to how the parser was designed.
But it depended on a frowned-upon parser feature (AST), that can lead to ambiguous or faulty results in similar cases, and for no good reason. When the creator of the language and its biggest guru disagree with your code style, well, there's no much room for an argument, even if all known implementations work fine with your code.
He also did an idiotic ?: operator abuse instead of a clear "if" in the same exact line. He probably likes silly "succinct code" tricks, which even C people wouldn't touch with a large pole...