[Python-ideas] Why is design-by-contracts not widely adopted?

Greg Ewing greg.ewing at canterbury.ac.nz
Thu Sep 27 03:02:18 EDT 2018


David Mertz wrote:
> the reality is that they really ARE NOT much different 
> from assertions, in either practice or theory.

Seems to me that assertions is exactly what they are. Eiffel just
provides some syntactic sugar for dealing with inheritance, etc.
You can get the same effect in present-day Python if you're
willing to write the appropriate code.

-- 
Greg


More information about the Python-ideas mailing list