assert with format considered harmful

Jonathan M Davis via Digitalmars-d digitalmars-d at puremagic.com
Sun Feb 26 15:32:14 PST 2017


On Sunday, February 26, 2017 11:13:47 Nick Sabalausky  via Digitalmars-d 
wrote:
> Yea. Six years ago, assertPred was written for Phobos and rejected
> because it was decided it was better for assert to just gain that
> functionality built-in...which a full six years later, never happened.
> Letting perfect be the enemy of the good, at its golden finest.

Well, to make matters more entertaining, it was later decided that it was
unreasonable to alter assert to print the extra information that assertPred
had. So, it's not even a case of no one doing it. It's a case of it being
rejected, leaving us with neither solution.

- Jonathan M Davis



More information about the Digitalmars-d mailing list