Guillaume,

I just meant that at an initial glance, I didn't realize that
'multiple assignments' could translate to 'multiple return types'. On
a closer look, it hit me (and I liked it!).

Thanks,
Greg

On Mar 4, 3:48 am, Guillaume Laforge <glafo...@gmail.com> wrote:
> Hi Greg,
>
> On Mar 3, 3:13 pm, greggobridges <greggobrid...@gmail.com> 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+...
>
> 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 javaposse@googlegroups.com
To unsubscribe from this group, send email to 
javaposse+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/javaposse?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to