[nem-en] Late Binding in Nemerle

Snaury snaury at gmail.com
Wed Jul 5 14:59:57 CEST 2006


On 7/5/06, Kamil Skalski <kamil.skalski at gmail.com> wrote:
> Of course it would stay inside some namespace like Nemerle.LateBound
> not opened by default. But of course the best operator should be
> chosen if any.

I think no matter which operator you choose, it will be very hard to
implement it. See, it will be the same problem as in previous versions
of late macro, +/- operators and such. It's because when I make macro
that does <expr1> <op> <expr2> I get a lof of crap in expr2 (don't
know, maybe precedence can be tweaked somehow? now I don't know how,
but even so, if we set it too low, we might not get assign operator in
expr2 which is needed to assign to properties), which you will have to
parse. So when you write <expr1>!.Method()!.Method() expr2 is
Method()!.Method(), to determine where exactly magic of !. should end
is very hard, if not almost impossible.



More information about the devel-en mailing list