5 ms·
I don't disagree but I wish Python had builtin support for runtime type checking. I've thought about switching to Go or Rust for certain projects but Python's r
by jmt_ 4y ago
I don't disagree but I wish Python had builtin support for runtime type checking. I've thought about switching to Go or Rust for certain projects but Python's rich ecosystem makes it hard for me to switch, so for now I long for runtime type checking without needing an external library (e.g typeguard).
- meadsteve 4y agoVery much agree. It's one thing I really appreciated about how php added type annotations. You didn't need them but once you added them they became a gaurantee.
- aprdm 4y agoYou can configure vscode to fail on typing problems and it will show errors in your editor
- peterashford 4y agoSo that's an IDE feature rather than a language level feature
- isitmadeofglass 4y agoYou can check types at runtime in python. You can even check values at runtime. Heck you can check the weather at runtime if you like. What’s the problem exactly?