Another idiom I wish were gone from phobos/druntime

deadalnix via Digitalmars-d digitalmars-d at puremagic.com
Thu Feb 5 01:05:29 PST 2015


On Thursday, 5 February 2015 at 08:05:30 UTC, Jonathan M Davis 
wrote:
> On Thursday, February 05, 2015 01:33:54 David Nadlinger via 
> Digitalmars-d wrote:
>> On Thursday, 5 February 2015 at 01:09:15 UTC, Andrei 
>> Alexandrescu
>> wrote:
>> > Non-debug mode removes asserts statically. -- Andrei
>>
>> Using pre-/post-conditions allows the _caller_ to specify 
>> whether
>> the checks are run without recompiling the function body, at
>> least in theory.
>
> In theory, yes. And then in blocks would provide some value 
> outside of
> virtual functions. But as it stands, there is _zero_ semantic 
> difference
> between
>

DMD is broken. There is no need to break phobos in addition.


More information about the Digitalmars-d mailing list