[nem-en] Declaring Properties in the constructor - ala Boo

Alexey Borzenkov snaury at gmail.com
Sat Sep 30 18:33:58 CEST 2006


On 9/30/06, Michal Moskal <michal.moskal at gmail.com> wrote:
> On 9/30/06, Alexey Borzenkov <snaury at gmail.com> wrote:
> > On 9/30/06, Michal Moskal <michal.moskal at gmail.com> wrote:
> > > I kind of like:
> > >
> > >   def c = Cone (1, 2, x = "foo") with (y = "bar", z = "baz")
> > >
> > > It's general (not only for construction), it's easy
> > > to implement as a macro.
> >
> > Hmm... seems like I still miss something. How can you create a binary
> > operator macro without operator characters in it?
>
> Have a look at the top of macros/core.n.

Oh, wow! Now it makes sense! :) I thought compiler just special cases
when and with binary operators for match expressions...



More information about the devel-en mailing list