[rules-dev] Functional programming in Drools: Brackets and Commas

Mark Proctor mproctor at codehaus.org
Thu Oct 20 18:22:06 EDT 2011


On 20/10/2011 12:43, Toni Rikkola wrote:
> Yes parentheses.
>
> And I don't know the answer to the next question, just asking because 
> I have seen it work in other languages :-) Not a must have, in other 
> cases using parentheses is cleaner.
It does look nice, however languages that allow this tend to be more 
limited in scope. I was thinking about this myself the other day - 
optional parenthesis and optional comma separation. We'll look into it 
as a secondary consideration, it may become possible for some limited 
use cases....

Mark
>
> Toni
>
> On Oct 20, 2011, at 2:25 PM, Wolfgang Laun wrote:
>
>>
>>
>> On 20 October 2011 13:15, Toni Rikkola <toni.rikkola at gmail.com 
>> <mailto:toni.rikkola at gmail.com>> wrote:
>>
>>     I'm just asking if we can drop the brackets and maybe even the
>>     commas to get a cleaner look.
>>
>>
>> Do you mean parentheses, i.e. ()?
>>
>> How will a parser be able to determine the end of a parameterlist if 
>> there is one call inside the other?
>>
>> -W
>> _______________________________________________
>> rules-dev mailing list
>> rules-dev at lists.jboss.org <mailto:rules-dev at lists.jboss.org>
>> https://lists.jboss.org/mailman/listinfo/rules-dev
>
>
>
> _______________________________________________
> rules-dev mailing list
> rules-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-dev

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-dev/attachments/20111020/71f22d47/attachment.html 


More information about the rules-dev mailing list