Re:Why Kotlin is my next programming language (2015)
by winstonewert on Tuesday June 21, 2016 @06:54PM
(#11950126)
So, wait, what exactly is the common source of bugs? How does writing tests passing the incorrect types to function help catch them?
I agree that writing specific tests for that is very inefficient, and that few people (myself included) actually do it. I just also think the fact that people don't really write tests for a (anecdotally) common cause of bugs, and instead wait to see them in their production logs, is an anti-pattern, rather than a positive thing.