groovy-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Thibault Kruse <tibokr...@googlemail.com>
Subject Re: Parrot and the ++ and -- operators
Date Mon, 13 Feb 2017 22:58:53 GMT
On Feb 14, 2017 3:52 AM, "Jochen Theodorou" <blackdrag@gmx.org> wrote:


Options:

(2) do allow these post- and prefix operators only on VariableExpressions,
making the code above no longer compile


Just to be sure, a VariableExpression is an expression consisting only if a
variable name?
And this applies to both the pre and postfix ++ operator?
So ++i++ would also stop compiling?

So the question could be rephrased as: is there any good usecase for ++
outside the increment of a variable? Like
x = (((a * b)++)/c)--

Mime
View raw message