Stroustrup objects to adding Contracts to C++

strawberry9 strawberry9 at gmail.com
Wed Nov 11 08:13:59 UTC 2026


On Wednesday, 11 November 2026 at 06:42:07 UTC, Walter Bright 
wrote:
> 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.

Yes, you have to separate composition-oriented power (which is 
what I meant in my post) from language-level abstraction power.

But the principle remains: simplicity of primitives + power 
through composition can lead to remarkably sophisticated systems.

Nature seems to exploit this principle.

Mathematics works on the same principle.

With regards to programming langauages, many abstractions exist 
due to the cognitive limitations of us humans. Ai's neural 
networks don't seem to require anywhere near the level of 
abstraction power that us humans require, so I expect future 
programming languages to focus less on language level 
abstractions and far more on composition. Proofs will become 
another significant feature as well, as you can't have humans 
verify all the code AI produces.

Sophisticated intelligence can emerge from the interaction of 
relatively simple primitives - we already know this to be true.



More information about the Digitalmars-d mailing list