Re:Why Kotlin is my next programming language (2015)
by iends on Saturday June 18, 2016 @08:30PM
(#11931261)
Static typing.
[ Parent
| on HN ]
Re:Why Kotlin is my next programming language (2015)
by Bromskloss on Sunday June 19, 2016 @04:16AM
(#11932233)
Is the reasoning that you then don't have to test what happens if you pass a parameter of the wrong type to a function?
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.