Struct with default ctor (Was: [dmd-beta] dmd 2.064 beta take 2)
deadalnix
deadalnix at gmail.com
Sat May 18 00:08:27 PDT 2013
On 5/17/13, Walter Bright <walter at digitalmars.com> wrote:
> I oppose this. D has a lot of nice features because of the
> .init property.
> Default constructors wreck that.
So much great feature like :
- null all over the place.
- Having NUllable and NonNullable in phobos. BTW, NonNullable is
unable to ensure that it if effectively non nullable.
- Having to check for .init state all over the place (which have
a runtime cost, in addition to be error prone). RefCounted
implementation is emblematic of that.
More information about the Digitalmars-d
mailing list