In total agreement with you except for the type annotations. I see those as an abomination. Python is so beautiful as a syntax without those horrible glyphs.
While these annotations are available at runtime through the usual annotations attribute, no type checking happens at runtime . Instead, the proposal assumes the existence of a separate off-line type checker which users can run over their source code voluntarily
See? An abomination. I'll never introduce those in my personal projects.
Not for single objects, no---but think of data structures. Is it going to check that every element in a list is an int? What if the list has a million elements?
-70
u/mmarius90 May 30 '19
In total agreement with you except for the type annotations. I see those as an abomination. Python is so beautiful as a syntax without those horrible glyphs.
Quote the PEP:
See? An abomination. I'll never introduce those in my personal projects.