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

Chris Barker chris.barker at noaa.gov
Wed Sep 26 15:07:43 EDT 2018

On Tue, Sep 25, 2018 at 10:10 PM Lee Braiden <leebraid at gmail.com> wrote:

> It's the reason why type checking exists, and why bounds checking exists,
> and why unit checking exists too.

And yet Python has none of those. They all provide safety, but also place a
burden on the developer.

So why use Python? I’m not arguing that all those features don’t have their
advantages, but I am wondering why add them all to Python, rather than
using a language designed for safety?

But Python has such a great ecosystem of packages! Yes, it does — but you
might ask yourself why that is.

All that being said — do go and make a nice DbC package for Python — maybe
all us naysayers will grow to love it!

But could we please stop cluttering this list with discussion of how great
or not great it is?

These meta-conversations are getting really tiresome.



Christopher Barker, Ph.D.

Emergency Response Division
NOAA/NOS/OR&R            (206) 526-6959   voice
7600 Sand Point Way NE   (206) 526-6329   fax
Seattle, WA  98115       (206) 526-6317   main reception

Chris.Barker at noaa.gov
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20180926/fda43df6/attachment-0001.html>

More information about the Python-ideas mailing list