xwu
(Xiaodi Wu)
80
The revision states:
move x + y // Parses as (move x) + y
I wonder if there could be some more justification of this choice, as it behaves differently from try, etc.
Might it be preferred to have move x + y parse as move (x + y), particularly since there would be issues using explicit parens due to ambiguity with hypothetical functions named move? Users could specify (move x) + y explicitly if that's what they want.
Alternatively, is there room to make move have undefined precedence with standard operators and therefore always require parens?
3 Likes