[nem-en] Re: Macro proposal

Kamil Skalski kamil.skalski at gmail.com
Thu Jun 21 10:20:52 CEST 2007


>
> As a Rubyist, the first thing I wanted to use was 'do', but it is
> already used for 'do-while' loop. :)

It doesn't matter, since the context is quite different.

>
> > Could we use with instead of do?
> >
> > List.Map(lst) with (x) =>
> >    some
> >    code
> >
> > feels better.
>
> 'with' in Delphi and VB is used to bring object properties to current
> scope. In Python it is used like 'using' macro in Nemerle. Very
> popular keyword.

'with' is already used in pattern matching, which is again very
different context. I think it can be used in a new one too. I like it.

>
> Isn't these sound: "filter by this function"? :) I may be wrong, since I
>    am not a native english speaker.
>

Well, this is very specific and proper only for "Filter" function.

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



More information about the devel-en mailing list