groovy-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jochen Theodorou <blackd...@gmx.org>
Subject Re: Omitting parentheses on .size() ?
Date Wed, 05 Aug 2020 19:29:10 GMT
On 05.08.20 16:26, MG wrote:
> Thank you, Jochen - that's actually a Groovy feature that has been
> around for a long time, that I completely forgot about :-)

;)

> https://groovy-lang.org/metaprogramming.html#_extension_modules
> https://mrhaki.blogspot.com/2013/01/groovy-goodness-adding-extra-methods.html
>
> Do you know if:
>
>  1. This works for interfaces (e.g. List and Map) ?

yes, should do

>  2. Whether IntelliJ picks up those extension methods (i.e. will
>     Intellisense know that e.g. List now has a getSize() method) ?

That I am not sure of.

bye Jochen


Mime
View raw message