Stroustrup objects to adding Contracts to C++

Richard (Rikki) Andrew Cattermole richard at cattermole.co.nz
Wed Nov 11 20:24:12 UTC 2026


On 12/11/2026 4:18 AM, Paul Backus wrote:
> On Wednesday, 11 November 2026 at 12:37:58 UTC, Richard (Rikki) Andrew 
> Cattermole wrote:
>> Effects analysis in dmd is DOA in the type system.
>>
>> It cannot do it correctly.
>>
>> Walter screwed up designing the architecture for dmd's semantic 
>> analysis when he designed it to be fast and not for analysis 
>> capabilities.
>>
>> See: attribute soup. Without inference working correctly, this problem 
>> cannot be fixed, and we can't fix it.
> 
> If we've given up on fixing DMD's semantic analysis then D as a language 
> is as good as dead.

We are not rewriting the entirety of semantic analysis just to fix this 
one architecture problem.

It'll take a decade for the compiler to stabilize, and that will 
definitely kill D.

Alternatively we could accept that this architectural problem exists, 
and should find alternative approaches. My first foray into that with 
the fast dfa engine so far appears to be a success.


More information about the Digitalmars-d mailing list