[Grace-core] Dialect Design Proposal

James Noble kjx at ecs.vuw.ac.nz
Thu Nov 29 02:24:32 PST 2012


> While *many researcher* consider some details of C++ semantic
> misleading, is also true that C++ is still one of the most used
> programming languages, so that the concept of
> *conventional class base inheritance semantic during construction* is
> simply undefined.

right. everyone (including me!) is shaped by the languages they've used most recently.

>> I can imagine a language which decides not to allow self-calls until the object is fully constructed,
>> but that really ties your hand behind your back.
> 
> That is my proposal indeed, I strongly believe that such solution
> would be perfect.

except (as Stephen's work shows)  "initialisation" just gets moved outside constructors.

> And if grace syntax can support such patterns in a... graceful way,
> that I think there is no disadvantage at all in such discipline.

there are *always* disadvantages: the question is about the tradeoffs.

James


More information about the Grace-core mailing list