General statistics
List of Youtube channels
Youtube commenter search
Distinguished comments
About
Fireship
comments
Comments by "" (@GSBarlev) on "Big projects are ditching TypeScript… why?" video.
Bingo. I'm a huge mypy Stan, but even I am in favor of omitting type hints (in exchange for detailed docstrings) on a function where I would need to perform "gymnastics" to get the compiler not to complain. I also very much appreciate Python's use of Protocols and TypeAliases to allow you to have your cake and eat it too—that is, if type checking is important but would distract from the code flow, you can define a "DuckLike" Protocol in some file out of the way that articulates the exact way the parameter is supported to quack.
9
@jbird4478 Well keep in mind that Python is not just a programming language but is meant to be used interactively—and static types in a REPL would be a nightmare.
1