Structs are Not Plain: A call for empty struct constructors

Eugene Wissner belka at caraus.de
Fri Sep 20 09:06:18 UTC 2019


On Friday, 20 September 2019 at 08:24:29 UTC, Kagamin wrote:
> On Friday, 20 September 2019 at 07:58:42 UTC, FeepingCreature 
> wrote:
>> Yeah and I don't much approve of all that either... how many 
>> unexpected crashes can be laid at the feet of objects being 
>> "segfault by default"? You're argument is basically "that's 
>> how it is, so that's how it should be." The proliferation of 
>> non-null invariants in our codebase begs to disagree.
>
> When your code has a bug, a crash is the best outcome you can 
> hope for.

And in the best case the language shouldn't encourage to 
introduce bugs.


More information about the Digitalmars-d mailing list