[Python-ideas] Why is design-by-contracts not widely adopted?
James Lu
jamtlu at gmail.com
Fri Sep 28 19:16:18 EDT 2018
Many editors highlight decorators in a different color that makes it easier to ignore and can also fold decorators.
Contracts can also sometimes actively improve the flow of code.
I personally find a formal contract easier to read than informal documentation.
It also reduces the times where you need to spend time figuring out if documentation actually accurate and up to date
More information about the Python-ideas
mailing list