groovy-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mario Garcia <mario.g...@gmail.com>
Subject Re: Java object conversion using ConfigSlurper
Date Wed, 16 May 2018 09:32:52 GMT
Hi, good work :)

It seems a nice feature, but I'm wondering why having two different methods
doing the same ? asType and getAs.

   - I think is always better to avoid having two methods doing the same,
   specially when asType can be called both directly or via sugar syntax.
   - I also think the use case fits asType perfectly, as it's mentioned in
   its Groovydoc entry: "Converts a given object to a type"

IMHO I would stick only to asType.

Mario

El mar., 15 may. 2018 a las 9:36, Daniel.Sun (<sunlan@apache.org>) escribió:

> I think it is nice for me :-)
>
> Cheers,
> Daniel.Sun
>
>
>
> --
> Sent from: http://groovy.329449.n5.nabble.com/Groovy-Dev-f372993.html
>

Mime
View raw message