Improving assert-printing in DMD
Andrei Alexandrescu via Digitalmars-d
digitalmars-d at puremagic.com
Thu Oct 1 12:04:51 PDT 2015
On 10/01/2015 01:19 PM, Per Nordlöw wrote:
> On Thursday, 1 October 2015 at 14:37:55 UTC, Andrei Alexandrescu wrote:
>> Whoever wants to work on better assert expression printing: make sure
>> you specify which grammar constructs are supported, and how the parts
>> involved are printed. Expressing semantics via lowering would be
>> great. Write a DIP, discuss, implement. I'll have your six.
>>
>>
>> Andrei
>
> A first version:
>
> http://wiki.dlang.org/DIP83
A good start. Few thoughts:
* I don't think we need a new flag, just make the new behavior work.
* Should the lowering happen only on the function called if the
assertion actually fails? Then no more need for laziness and other
complications.
* Extend to other expressions (!=, ordering etc).
Andrei
More information about the Digitalmars-d
mailing list