Hacker News new | ask | show | jobs
by wittekm 1137 days ago
Having worked at a company with a million-lines-plus of Python monolith, gradual typing annotations made all the difference. Why do you need it enforced at runtime? It's static types!
3 comments

They said "by the runtime", perhaps they mean that the python interpreter should throw errors at compilation time, since its not a classic compiled language.
> They said "by the runtime", perhaps they mean that the python interpreter should throw errors at compilation time, since its not a classic compiled language.

Why waste time doing static analysis each time you run the code? If you don't change the code, its not going to change.

Because the type annotations are worthless if you can't ever be certain that they actually hold.

Currently they are little more than a crutch to have intellisense working.

Oh boy. A million-line monolith.... Does this company name start with a 'Y' by any chance?
Many people like working on monoliths. Let people enjoy things.