News for hackers. Stuff that matters.
Re:Why Kotlin is my next programming language (2015) by bbcbasic on Sunday June 19, 2016 @04:44AM (#11932293)
The compiler guarantees it won't happen. Such a test would be a test of the compiler and in my opinion unnecessary. And in Haskell at least... impossible. You can't write the the test because IT won't compile!
Re:Why Kotlin is my next programming language (2015) by Bromskloss on Sunday June 19, 2016 @05:16AM (#11932352)
I understand that. My question is if that is the kind of tests that people have in mind when they say that static typing requires fewer tests.
Re:Why Kotlin is my next programming language (2015) by bbcbasic on Sunday June 19, 2016 @05:31AM (#11932373)
I can't speak for anyone else but I believe so yes.
Re:Why Kotlin is my next programming language (2015) by iends on Monday June 20, 2016 @09:47AM (#11937971)
Yes. When writing JS you have to explicitly do a lot more validation.