3 ms·
I think it’s a bit disingenuous to put it that way. The comment you are replying to is not asking for a widely different programming style. They want typing whi
by RandomThoughts3 2y ago
I think it’s a bit disingenuous to put it that way. The comment you are replying to is not asking for a widely different programming style. They want typing which is perfectly understandable.
It’s common that as project grows larger and more unwieldy, people ask for more warranty and help from their tooling. I think Python position on this strikes a good balance - provide the infrastructure for adding type hint but delegates type checking to a third party.
- surfingdino 2y agoPython uses dynamic typing by design. Removing it would remove one of it strengths (and weaknesses as some insist). It is one of the things that made Python so successful. We have learned over time that adding mypy to the pre-commit hooks is a good thing, but I think that's where we should stop. Give devs an option, but don't force it upon them.
- deleted 2y ago[deleted]
- robertlagrant 2y agoI think you could also argue for some sort of setting that adds additional optimisations based on type hints, but it would have to default to off.