groovy-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From OC <...@ocs.cz>
Subject Re: Safe index for Groovy 3
Date Wed, 09 Nov 2016 15:37:22 GMT
P.S. just to stay at the precise side...

On 9. 11. 2016, at 16:33, OC <ocs@ocs.cz> wrote:

> @AlwaysSafe class foo {
>  def bar(a,b,c,d) { // this method never NPEs

unless a.foo implementation does, of course!

> ; if any argument is null, it simply returns null
>    a.foo+b+c[d] // and so forth with any other operation
>  }
> }


Mime
View raw message