Re:Why Today's Python Developers Are Embracing Type Hints
by ninetyninenine on Sunday September 28, 2025 @05:07PM
(#45408013)
>VS code = executing arbitrary python code. What stops me from deleting $HOME inside make_typed_dict?
Easy make IO calls illegal in the type checker. The type checker of course needs to execute code in a sandbox. It won't be the full python language. Idris ALREADY does this.
TypeScript solves this with its own syntax that never gets executed by an interpreter because types are striped when TS is compiled to JS.