[Grace-core] Dialect Design Proposal

Lex Spoon lex at lexspoon.org
Mon Dec 10 12:30:54 PST 2012


On Mon, Dec 10, 2012 at 12:30 PM, Andrew P. Black <black at cs.pdx.edu> wrote:
> If initialization after construction is required frequently enough, we could
> change the meaning of the class syntax to do it.  I haven't needed it yet,
> but I have frequently needed to re-use methods from immutable objects.

Of all the design constraints around inheritance being discussed,
built-in support for constructors strikes me as the least bad one to
give ground on. As can be seen from experience with Smalltalk, having
to use explicit messages for initialization is not so bad. As can be
seen from experience with Java, even with built-in constructors,
developers will often choose to use a builder class anyway.

Lex Spoon


More information about the Grace-core mailing list