Stroustrup objects to adding Contracts to C++

strawberry9 strawberry9 at gmail.com
Wed Nov 11 02:13:15 UTC 2026


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!!

The goal should not be to minimize the number of language 
features. It should be to minimize the number of independent 
concepts a programmer needs to understand to expressively and 
safely solve problems.

Bringing the discussion back to C++ ...

"We must eliminate access through dangling pointers ..." - That's 
a sentence on one of the slides that Bjarne Stroustrup displays 
in his talk:

https://www.youtube.com/watch?v=41USGJaGsAo

But Bjarne.... this is the year 2026!!! This should have been 
solved 20 or more years ago!!

The ideal language doesn't merely have few features. It has a 
small conceptual foundation from which many useful capabilities 
emerge naturally.

If D is going to survive in this new age of 'AI coding', it 
really needs to grasp this concept.


More information about the Digitalmars-d mailing list