[nem-en] Macro proposal

Kamil Skalski kamil.skalski at gmail.com
Tue Jun 19 21:19:10 CEST 2007


2007/6/19, Kamil Dworakowski <kamil.dworakowski at googlemail.com>:
> Or maybe this would be more self descriptive and more general.
>
> def sum = function_with_callback(1, 2,_) <| fun(l, r)
>     l + r
>
> def sum = function_with_callback(1,_,_) <| 2 <| fun(l, r)
>     l + r
>
> Could be implemented as a plain operator(?)

I don't think - mainly because operators cannot inject additional
parameters into one of its arguments (even assuming it could be
checked that the argument is a function call).
Type of such operator is another story.

But this operator looks a little bit better.


-- 
Kamil Skalski
http://nazgul.omega.pl



More information about the devel-en mailing list