Interesting Research Paper on Constructors in OO Languages

Ali Çehreli acehreli at yahoo.com
Wed Jul 17 15:27:46 PDT 2013


On 07/16/2013 01:30 AM, deadalnix wrote:
> My policy is to require the bare minimum to construct a valid object, in
> order to avoid initialization hell.

+0.33

>
> Not knowing what/when to initialize thing is really painful as well. It
> also introduce sequential coupling and wrongly initialized object tends
> to explode far away from their construction point.

+0.33

>
> What goes in this category ? Any state that can't have any default value
> that make sense, as well as any state that is expansive to initialize.

+0.33

And to complete: +0.01 :p

Ali



More information about the Digitalmars-d mailing list