[nem-en] Re: [nem-bug] [Nemerle 0000614]: Record to generate
constructor just for not initialized fields
Kamil Skalski
kamil.skalski at gmail.com
Sat Mar 25 22:57:38 CET 2006
The new desing (http://nemerle.org/Record_macro) is now implemented.
The Record macro can now take Include and Exclude parameters, which
allow flexible specification of which fields should be considered.
On 2/7/06, Kamil Skalski <kamil.skalski at gmail.com> wrote:
> > >
> > > class C
> > > mutable f: list[A] = []
> > > f2: int
> > > public this(f2:int)
> > > this.f2 = f2
> >
> > I think the idea is worthwhile, I just wonder about the syntax.
> > [Record(InitUninitialized)] or something like that?
> >
>
> I think we should provide functionality like in Accessor macros, that is:
> [Record (Flags = OnlyNotInitialized | Bla | Blu)]
>
> I'm quite suprised, that this is the first request for extending
> functionality of Recod macro. But it doesn't mean that they won't
> appear in future.
>
> I would like to have for example, "properties" like "exclude" and "include".
>
> --
> Kamil Skalski
> http://nazgul.omega.pl
>
--
Kamil Skalski
http://nazgul.omega.pl
More information about the devel-en
mailing list