by 1337shadow · 5y ago · 0 comments
Exactly, and all you need is Any
> a lot of people out there are writing code this way: just hack away until it works, and fix it if it ever crashes.
I'm willing to agree that Non-TDD hackers should go for static typing.
It's really not a good idea to follow TDD instead of using types. You want tests for things that aren't practical to verify, not for replacing static verification.
If you're using Any, then your program is (at least in part) dynamically typed. I don't think it's fair to say "look! Static typing is better than dynamic typing in any and all situations! (so long as it can use dynamic typing)"