status of D optimizers benefiting from contracts ?

Timon Gehr via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Mon Nov 10 11:18:55 PST 2014


On 11/09/2014 05:24 PM, H. S. Teoh via Digitalmars-d-learn wrote:
> On Sun, Nov 09, 2014 at 04:12:06PM +0000, bearophile via Digitalmars-d-learn wrote:
>> H. S. Teoh:
>>
>>> Walter *did* mention recently that he was planning to eventually take
>>> advantage of information in assert()'s as optimizer hints. Not sure
>>> when this will happen, though, but it seems inevitable at some point.
>>
>> And it caused a storm, because it's an awfully bad idea.
> [...]
>
> It's only a bad idea because people abuse assert() where it's not
> appropriate.
>
>
> T
>

Some do, but that's basically orthogonal to why this is a bad idea.


More information about the Digitalmars-d-learn mailing list