yet another function types syntax variation

Neal Gafter neal at gafter.com
Tue Feb 9 13:23:04 PST 2010


I think that would be confusing when combined with ?: expressions.

On Tue, Feb 9, 2010 at 1:05 PM, John Nilsson <john at milsson.nu> wrote:

> On Tue, Feb 9, 2010 at 9:17 PM, Neal Gafter <neal at gafter.com> wrote:
>
>> I don't think *#* works as well as the arrow, however
>>
>> *static <T,U,V> (T)#(U)#V curry((T,U)#V toCurry) {*
>> *  return (T t)#(U u)#toCurry(t, u);*
>> *}*
>>
>
> Would : work (unambigously) ?
>
>
>> *static <T,U,V> (T):(U):V curry((T,U):V toCurry) {*
>> *  return (T t):(U u):toCurry(t, u);*
>> *}*
>>
>
> As long as it is always preceded with parentheses it shouldn't collide with
> labels.
>
> BR,
> John
>


More information about the lambda-dev mailing list