[Python-ideas] Fwd: Null coalescing operator

Chris Angelico rosuav at gmail.com
Tue Sep 13 12:22:28 EDT 2016


On Wed, Sep 14, 2016 at 1:27 AM, Rob Cliffe <rob.cliffe at btinternet.com> wrote:
> And sorry to repeat myself, but we seemed to be having a *general*
> discussion about null-coalescing operators, which moved on to PEP 463, then
> suddenly Guido is talking about APIs.  A lot of the time when I'm coding,
> I'm not writing an API, just a program to get a job done.  No doubt,
> exceptions should be discouraged *in APIs*, but that doesn't make
> exceptions, or EAFP, a bad idea per se.

PEP 463, by its nature, is talking about the language. Language
features govern and advise API design, which then changes how you
write "a program to get a job done", so it does actually have strong
bearing - just via a couple of levels of indirection.

ChrisA


More information about the Python-ideas mailing list