|
|
|
|
|
by mbrock
3143 days ago
|
|
I think imperativity vs purely functional is mostly a red herring. Lambda functions won't solve your logical mistakes. What we really need is the ability to automatically verify the possible outcomes of a piece of logic to guarantee crucial safety properties. That's not an intractable thing. It's possible in many cases today with simple techniques like symbolic execution. |
|
Automatic code property verification will probably become pervasive some day, but we're far from there: today's tools require experts to be used, even experts only manage to prove fairly basic properties, and the level of automation is really low. Even writing proof-friendly code and formulating propositions (without proving them) is out of most developers' reach.