[nem-en] Re: [nem-bug] [Nemerle 0000614]: Record to generate
constructor just for not initialized fields
Michal Moskal
michal.moskal at gmail.com
Tue Feb 7 14:56:50 CET 2006
On 2/7/06, feedback at nemerle.org <feedback at nemerle.org> wrote:
> The following issue has been SUBMITTED.
> <http://nemerle.org/bugs/view.php?id=614>
> Reported By: Kamil Dworakowski
>
> Summary: Record to generate constructor just for not
> initialized fields
>
> Description:
> I would like a Record pattern to generate a constructor that doesn't set
> already initialized fields. For example
>
> [Record] class C
> mutable f: list[A] = []
> f2: int
>
> -->
>
> 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?
--
Michal Moskal,
http://nemerle.org/~malekith/
More information about the devel-en
mailing list