groovy-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Daniil Ovchinnikov <daniil.ovchinni...@jetbrains.com>
Subject [parrot] Command expressions in array initializer
Date Thu, 05 Jul 2018 12:39:34 GMT
Hi, I just found a good puzzler candidate.

`new int[] { a b, c, d }` is actually `new int[] { a(b, c, d) }`. 

I suggest to drop support for command expressions inside all comma-separated lists to avoid
confusion.
It could be easily implemented later in case it will be actually needed.

—

Daniil Ovchinnikov
JetBrains



Mime
View raw message