Stroustrup objects to adding Contracts to C++

Walter Bright newshound2 at digitalmars.com
Wed Nov 11 06:42:07 UTC 2026


On 11/10/2026 6:13 PM, strawberry9 wrote:
> On Tuesday, 10 November 2026 at 23:04:05 UTC, Walter Bright wrote:
>> ..
>> A language with a small number of powerful features is better than having a 
>> large number of weak features.
> 
> This is only somewhat true. C's small number of primitives are remarkably 
> powerful (which is one reason why it's survived so long), but it comes at the 
> cost of pushing complexity into application code, libraries, conventions, and 
> worst of all ... the prgorammers head.
> 
> That's not necesarily a good tradeoff!!

I agree with you, except that C's features are not powerful - they are 
low-level. It takes too much boilerplate to do abstractions. It's very difficult 
to refactor C data structures.



More information about the Digitalmars-d mailing list