[prev in list] [next in list] [prev in thread] [next in thread]
List: groovy-dev
Subject: Re: [groovy-dev] Re: Closure syntax
From: Jochen Theodorou <blackdrag () uni ! de>
Date: 2005-01-26 17:07:35
Message-ID: 41F7CE57.6010709 () uni ! de
[Download RAW message or body]
Russel Winder schrieb:
> On Wed, 2005-01-26 at 10:33 +0100, Jochen Theodorou wrote:
>
[...]
>>>> public void foo { |arg1, arg2 |
>>>> println ("${arg1} ${arg2});
>
>>that means you like the above, or not? I think we could do the above to
>>be more consistent.
>
> Actually if we are going to be non-Java in procedure definition then I
> would get rid of the prefix return type and do something like:
>
> def foo { | a, b -> c | . . . }
>
> where a and be are parameter declarations and c is a type name.
I'm open to this kind of syntax. it would give the "def" more rights to
exist
bye blackdrag
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic