[nem-en] Macro proposal

Kamil Dworakowski kamil.dworakowski at googlemail.com
Tue Jun 19 12:50:22 CEST 2007


> Macro name isn't very good but I can't find any good one. :)
> I propose this macro (or something similar) for adding to Nemerle 
> library. Comments are welcome.

Nice idea!

How about using <| operator for this macro? The |> is already used to 
feed a function with an argument from the left.

def sum = function_with_callback(1, 2) <| fun(l, r)
    l + r

def sum = function_with_callback(1) <| 2 <| fun(l, r)
    l + r

-- Kamil Dworakowski




More information about the devel-en mailing list