[Python-ideas] Lessons from typing hinting Whoosh (PEP484)
Chris Barker - NOAA Federal
chris.barker at noaa.gov
Mon Nov 16 20:27:03 EST 2015
>> As a side note, most of the C++ family have something akin to "typedef" and/or "using" type aliases that are explicitly _not_ treated as different types by the static typing algorithm:
...
> Yes, that's what PEP 484 type aliases do too.
Darn -- C typedefs have their uses, but improving type safety is not
one of them.
PEP 484 is all about type checking/safety -- it seems it would be a
lot more useful if aliases were treated as different types.
Oh well.
CHB
More information about the Python-ideas
mailing list