Interesting Research Paper on Constructors in OO Languages
deadalnix
deadalnix at gmail.com
Tue Jul 16 01:30:03 PDT 2013
My policy is to require the bare minimum to construct a valid
object, in order to avoid initialization hell.
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.
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.
More information about the Digitalmars-d
mailing list