groovy-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Paul King <pa...@asert.com.au>
Subject Re: [GEP] About supporting Java-Like array literal
Date Mon, 16 Apr 2018 11:35:46 GMT
Well, it's fine to "refine it later" on the branch. I don't think we want
it in master unless we exactly know what breaking changes like above might
be involved.

Cheers, Paul.

On Mon, Apr 16, 2018 at 8:35 PM, Daniel Sun <realbluesun@hotmail.com> wrote:

> 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