4 ms·
Ah, I recently started using type hints in Python. Would've loved to see how that compares even though it's not inherently a statically typed language!
by clashmeifyoucan 6y ago
Ah, I recently started using type hints in Python. Would've loved to see how that compares even though it's not inherently a statically typed language!
- singhrac 6y agoPython's type system is an instance of "gradual typing" (like e.g. TypeScript). PEP 483 is actually a nice introduction to this: https://www.python.org/dev/peps/pep-0483/ https://www.python.org/dev/peps/pep-0483/
- clashmeifyoucan 6y agoRight, it should still be possible to statically type it for the purpose of testing. Wouldn't really be close to practical usage but I'd still be interested in seeing how it compares.