DEV Community

Discussion on: Why static typing matters

Collapse
 
mindplay profile image
Rasmus Schultz

Interesting 🙂

Note that this isn't a new language feature per se, though - technically, this is new syntax for annotations: it isn't checked by the compiler when the code is loaded, and the types aren't checked by the interpreter at run-time either. An external tool is required to perform the static analysis offline.

I suppose these things would be possible in the future though. Possibly even in userland? (I don't know Python all that well myself.)

Either way, just adding the syntax is a major step up - it's real incentive to proof and harden your code, and start using an offline inspection tool. 👍