Hi Greg,

On Mar 3, 3:13 pm, greggobridges <[email protected]> wrote:
> There was one thing about multiple assignments that was left out in
> the discussion: this allows for multiple return types. While the Posse
> didn't mention it, this is more of an omission by Groovy's own
> announcement, since they did not make it clear that multiple return
> types are now possible:

Hmm, it's in the announcement:
http://docs.codehaus.org/display/GROOVY/2009/02/18/The+final+version+of+Groovy+1.6+is+released

And it's also pretty well covered on the InfoQ article on the
novelties in Groovy 1.6:
http://www.infoq.com/articles/groovy-1-6

> def x,y,z
>
> (x, y, z) = foo.returnTheCoordinateSet()
>
> To me, this is huge.

Hehe, yup, thanks :-)
This is a pretty handy feature.

Guillaume

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "The 
Java Posse" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/javaposse?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to