Just a clarification: I wrote: > I’ve discovered a small issue with unary syntax. Currently, nested unary > expressions are not supported without parenthesis: Try e.g. - -1 or + -1. Is > this intentional, or just an artifact of the precedence-refactored Java > grammar? >
By “currently”, I mean in Groovy 2.x. In Groovy 2.x “- -1” is illegal. In Java, it’s allowed - and equals 1. I propose that the new grammar should allow this, too. Any objections? -Jesper