OK. I see ;-)
--
Sent from: http://groovy.329449.n5.nabble.com/Groovy-Dev-f372993.html
We have to be careful with such breaking changes, as it could change the
results of existing calculations.
The other aspect being the fact that the AST would be different, so it
might have a small impact on some AST transformations that would look at
such constant numbers.
On Thu, Feb 22, 2018 at
Hi Paul,
Thanks for your finding these discussion.
As Jochen said: Ruby and Python calculate `-2**4` and return `-16`,
Groovy returns the same value currently.
But Scala/Excel returns `16`...
Maybe Ruby/Python/Groovy behaves properly for most people...
blackdrag wrot
This and similar issues have come up before. It would be worthwhile
searching the mail archives.
At least one related change we backed out of last time. I'd be interested
to see how it impacts the examples in previous discussions:
https://issues.apache.org/jira/browse/GROOVY-7428
http://markmail.o