* Eric Rannaud:
> On Fri, Mar 06, 2009 at 01:41:31PM -0500, Jonathan S. Shapiro wrote:
>> We seem to have two broad options for procedure application: I'm not
>> entirely convinced that the second one works if we retain n-ary functions
>> and we decide to do mixfix:
>>
>> Option 1:
>>
>> proc-name( arg ... arg)
>>
>> Option 2:
>>
>> proc-name arg ... arg
Option 1 basically rules out combinator library abuse, which is a good
thing IMHO (but others will fiercely disagree).
> I realize you're not polling on this particular question, but this may
> have an impact on your decision for procedure application syntax.
>
> Have you considered supporting keyword arguments (aka. labels, named
> arguments)?
Lua has a neat trick for this: if the argument is a table expression
(roughly corresponding to a record), you can omit the parentheses in a
function application. So you can write:
proc {arg1 = foo, arg2 = bar}
So if you have decent record constructors, you don't need labeled
arguments IMHO (except for currying, maybe, but that's rather obscure
anyway).
_______________________________________________
bitc-dev mailing list
[email protected]
http://www.coyotos.org/mailman/listinfo/bitc-dev