Re:Why Today's Python Developers Are Embracing Type Hints
by procaryote on Sunday September 28, 2025 @07:20AM
(#45403516)
Writing tests is harder work than writing the equvalent number of type hints though
Re:Why Today's Python Developers Are Embracing Type Hints
by dirkc on Monday September 29, 2025 @03:06AM
(#45411063)
Type hints and/or stronger typing in other languages are not good substitutes for testing. I sometimes worry that teams with strong preferences for strong typing have a false sense of security.
Re:Why Today's Python Developers Are Embracing Type Hints
by procaryote on Tuesday September 30, 2025 @02:31AM
(#45422559)
People write tests in statically typed languages too, it's just that there's a whole class of bugs that you don't have to test for.
Re:Why Today's Python Developers Are Embracing Type Hints
by mixmastamyk on Monday September 29, 2025 @02:36PM
(#45417199)
Hints are not sufficient, you’ll need tests anyway. They somewhat overlap.
Re:Why Today's Python Developers Are Embracing Type Hints
by ivanjermakov on Sunday September 28, 2025 @09:14AM
(#45404109)
Writing and maintaining tests that just do type checking is madness.
Dynamic typing also gives tooling such as LSPs and linters a hard time figuring out completions/references lookup etc. Can't imagine how people work on moderate to big projects without type hints.
Yes, it was your responsibility to keep track of correctness, but that also taught me to write better code, and better tests.