groovy-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Daniel Sun <realblue...@hotmail.com>
Subject Re: [GEP] About supporting Java-Like array literal
Date Mon, 16 Apr 2018 10:35:08 GMT
Hi Paul,

    The Parrot parser on the `phoenix` branch can handle nested array
literals, but it parses it as list currently, we can refine it later ;-)

```
Closure[] y = { {-> 1 + 1 } }
assert y[0].call().call() == 2
```
> is the second ".call()" no longer needed?
    yes.
    

Cheers,
Daniel.Sun



--
Sent from: http://groovy.329449.n5.nabble.com/Groovy-Dev-f372993.html

Mime
View raw message