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: Constructor call short-hand syntax
Date Tue, 04 Sep 2018 09:15:39 GMT
Daniel,

Just to clarify, your vote for -1 is for `Date?[time:0]`. Right?


On Tue, Sep 4, 2018 at 2:49 PM Daniel Sun <realbluesun@hotmail.com> wrote:

> Hi Paul,
>
>      Safe index is only for accessing the elements of collections and
> object
> properties, but not for creating instance. The collections and objects may
> be null, so we designed the "safe" index.
>
>      To sum up, I vote -1 to support syntax like `Date[time:0]`, the class
> instance will not be null.
>
> Cheers,
> Daniel.Sun
>
>
>
> --
> Sent from: http://groovy.329449.n5.nabble.com/Groovy-Dev-f372993.html
>

Mime
View raw message