Are the critiques in "All the things I hate about Python" valid?

Steven D'Aprano steve+comp.lang.python at pearwood.info
Tue Feb 20 10:38:09 EST 2018


On Tue, 20 Feb 2018 15:23:44 +0100, Antoon Pardon wrote:

>> Okay. Now create a constraint on a name in C++ such that it can only
>> accept integers representing A.D. years which, on the Gregorian
>> calendar, are leap years. (Using a dedicated integer-like type is
>> permitted.) It must accept all multiples of four, except those which
>> are multiples of one hundred, unless they're also multiples of four
>> hundred.
>>
>> That's what Steve asked for. Can you do it? Or is the C++ type system
>> not flexible enough for that?
> 
> Steve had multiple contributions in this thread. I didn't react to the
> one where he asked for that.

Yes you did: you refused to meet the challenge, stating (and I quote):

"Why should this be done at compile time?"

https://mail.python.org/pipermail/python-list/2018-February/730995.html



-- 
Steve




More information about the Python-list mailing list