dart2js in non-minified mode should emit extra parens to make precedence plain #6666
Labels
closed-not-planned
Closed as we don't intend to take action on the reported issue
P2
A bug or feature request we're likely to work on
P3
A lower priority bug or feature request
type-enhancement
A request for a change that isn't a bug
web-dart2js
dart2js 'readable mode', i.e. when --minify is not specified, should emit parens to make the precedence of the operators clear to the programmer who has to read the emitted JavaScript.
This will be especially useful when Issue #114 is addressed since the precedence of operators in Dart code will be different to the generated JavaScript.
The operators have several natural families, e.g.
The confusion generally occurs when expressions have operators from different families.
The text was updated successfully, but these errors were encountered: