yet another function types syntax variation

John Nilsson john at milsson.nu
Tue Feb 9 13:05:51 PST 2010


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