[nem-en] Re: Late Binding in Nemerle

Kamil Skalski kamil.skalski at gmail.com
Tue Jul 4 19:43:48 CEST 2006


2006/7/4, Snaury <snaury at gmail.com>:
> On 7/4/06, Kamil Skalski <kamil.skalski at gmail.com> wrote:
> > > //       def num = late s.Length :> int + 13 // now works correctly!
> > So the whole expression  's.Length :> int + 13' is late bound? I guess
> > this should be the behaviour - make the whole expression late.
>
> Actually not. What I'm thinking is making <ugh, I forgot the word for
> this: means weight/precedence of operator> as little as possible. So
> in late s.Length :> int only s.Length is late-expr.
>

This is why I don't like all this "duck-typing" at all... it is NEVER
clear which part of code is late bound and which is not. I guess
writing 'late expr' before every single expression I wan't to make
late bound would be a little bit irritating - if I want some late
bounding I want it for the whole part of code and if I don't I just
use proper () to separate  the expressions.

Especially the
late-expr <op> expr...

rule is suprising for me... why left side, not right? ;)

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



More information about the devel-en mailing list