4 ms·
Yeah, it seems it's time to abandon Python since the static typing fundamentalists seem to be getting hold of it Extremely frustrated by this decision and even
by raverbashing 10y ago
Yeah, it seems it's time to abandon Python since the static typing fundamentalists seem to be getting hold of it
Extremely frustrated by this decision and even though the multiple denials that it won't become a statically typed language it's clear that idea has changed
- Alphasite_ 10y agoWhat's wrong with optional typing? All it does is formalise docstrings into an integrated syntax.
- raverbashing 10y agoIt's a slippery slope People will start using and it will become mandatory at some point
- Desustorm 10y agoI can see the medium post now! "Dynamically typed Python variables considered harmful"
- mvdwoord 10y agoAs long as it remains optional I'm all for it.
- icebraining 10y agoDocstrings are for modules, classes, functions and methods, not variables mixed with the code. And "optional" is a misnomer unless you only ever touch your own code. Programming is generally a social activity, so for most of us, "optional" means just means "inconsistently required". I don't have a philosophical objection to typing, but I'm yet to see a syntax that won't muddy Python's.
- geezerjay 10y ago> And "optional" is a misnomer unless you only ever touch your own code. Programming is generally a social activity, so for most of us, "optional" means just means "inconsistently required". Optionally means that it's not required or mandatory. You don't need to use it if you don't want to. If you're working on a project and the project follows a style guide then you follow the style guide, but nothing forces your bosses to require it. The code will run anyway.
- icebraining 10y agoThat's great for my bosses. I'm not my bosses, though, at least as yet.
- geezerjay 10y agoIt isn't good or bad. It's an optional feature. No one is forced to use it unless they specifically want it. Your bosses aren't forced to use it. This means that if they don't want to use them and they don't believe the official style guide has to impose them, you don't have to use them. If your bosses decide to impose them and change teh official style guide to require type annotation then your personal taste doesn't have any say in the subject either way, and you only need to act like a professional and be a team player. But the key issue is that no one is forced to use optional features unless they really want to.
- 2T1Qka0rEiPr 10y agoIt does seem odd that a module could be partially static. If it was optional I'd prefer to see it enabled by a different filetype (e.g. pys, heh piss).
- MollyR 10y agoIt's optional until the lead developer at work forces you to use it.
- Alphasite_ 10y agoCurrently they can force you to use a docstring with types, how is that any different?
- icebraining 10y agoDocstrings are not as interspersed with the code.
- dozzie 10y ago> Yeah, it seems it's time to abandon Python since the static typing fundamentalists seem to be getting hold of it. It seems it's time to abandon Erlang since static typing fundamentalists seem to be getting hold of it, with its typespecs and Dialyzer. Oh wait, it's still dynamically typed.
- raverbashing 10y agoDialyzer seems to be Erlang's Pylint (which does type analysis but still lets you do dynamic typing) And I'm all for Pylint, it also proves type hints are not needed for this kind of type analysis
- dozzie 10y agoWell, sort of. Dialyzer can do quite well if you run it on code with no typespecs whatsoever, but if you add those, it can detect so many more mistakes (which is the whole point of such tools). No typespecs feels like crippling the tool, except it was designed to be as useful as possible for old code without modifying it. It just shows how useful the typespecs are.
- michaelhoffman 10y agoNo decision yet, this PEP is a draft. Anyone can propose one.
- ghshephard 10y agoCheck the author list.
- michaelhoffman 10y agoDidn't notice that.