|
|
|
|
|
by rramadass
30 days ago
|
|
> While the C++26 variant of contracts doesn't provide the benefits of its static-analysis-centric ancestor from 2014 Do you have any information as to why they shifted the focus from static analysis to runtime checks? I only remember that it was based on some Microsoft annotation language or something. |
|
Already the compiler is allowed to refuse to compile any code if it would guaranteed fail the contract. The next step is to see how far we can go with that static analysis and what those static analysis tools need to be better. However, this requires people having contracts in fairly widespread use so they can start trying their new ideas to see what happens when they hit the real world.