News for hackers. Stuff that matters.
Re:Why Kotlin is my next programming language (2015) by sanderjd on Tuesday June 21, 2016 @11:18AM (#11946270)
For sure, and if you're someone who loves runtime assertions for type mis-matches, then I think you'd really love static type assertions, which are basically the same thing, but checked earlier, making bugs they find cheaper.

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.

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?