16 May 12:04
Re: [groovy-user] Oddities in the grammar that effect DSL writing
From: Jochen Theodorou <blackdrag@...>
Subject: Re: [groovy-user] Oddities in the grammar that effect DSL writing
Newsgroups: gmane.comp.lang.groovy.user
Date: 2008-05-16 10:04:10 GMT
Subject: Re: [groovy-user] Oddities in the grammar that effect DSL writing
Newsgroups: gmane.comp.lang.groovy.user
Date: 2008-05-16 10:04:10 GMT
Russel Winder schrieb:
> On Thu, 2008-05-15 at 03:51 -0700, melix wrote:
[...]
> Perhaps it might be helpful if I point out that this is exactly the sort
> of way that functional programming languages, e.g. Haskell, do things.
>
> Also of course:
>
> foo a.prop ( 2 / 3 ) c { println it }
>
> is equivalent to
>
> foo ( a.prop , 2 / 3 , c , { println it } )
>
> if you want to be really consistent
sure, I see that... but what about:
foo a.prop(2/3) c { println it }
is it now:
foo ( a.prop ( 2 / 3 ) , c , { println it } )
? I am not saying this or that is bad, I just want to remark, that if
that is true, then we are going to add whitespace sensitivity here.
bye blackdrag
--
--
Jochen "blackdrag" Theodorou
The Groovy Project Tech Lead (http://groovy.codehaus.org)
http://blackdragsview.blogspot.com/
http://www.g2one.com/
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email
RSS Feed