Closed DartBot closed 9 years ago
This comment was originally written by johnle...@google.com
Has this change be finalized? If so, what test case covers it?
Set owner to @gbracha. Removed Type-Defect label. Added Type-Enhancement, Accepted labels.
No test cases yet. If you need test-cases I can write some, but I expected the first implementor (Vm or dartc) to write one.
Marked this as blocking #116.
This change has NOT been finalized. It is a feature request that we are quite sympathetic to, but no change has happened yet. We may want to wait and let things stabilize slightly before making such changes.
This comment was originally written by johnle...@google.com
Marked this as blocking #117.
Unmarked this as blocking #-116.
Added apr30-triage label.
Removed apr30-triage label.
Added triage1 label.
This change makes less sense if booleans have & and | operators as well. In that case, you would want "foo() == 42 & baz() == 37" to work on the booleans.
This issue was originally filed by edsr...@gmail.com
Like JavaScript, Java, and C, Dart places the precedence of the bitwise operators (|, &, and ^) below the equality and relational operators. I'd like to see the bitwise operators bind tighter.
The existing precedence is mostly a historical accident from C. Even Dennis Ritchie (RIP) admitted that it was a mistake in retrospect: https://groups.google.com/d/msg/net.lang.c/tw-N5MiDtZI/wH2TmPLdUTYJ
This change requires fewer parentheses and causes no harm to people expecting the current precedence since these operators don't work on booleans anyway.