HNHacker News
TopNewBestAskShowJobs

mplatvoet

1 karma · joined July 26, 2015

submissionscomments
mplatvoet··on Ask HN: Has anyone here programmed in Kotlin? What do you think about it?
If you want easy multithreading on Android take a look at Kovenant http://kovenant.komponents.nl/android/features/
mplatvoet··on Ask HN: Has anyone here programmed in Kotlin? What do you think about it?
The question is, why should this be part of the language or standard library? This can easily be achieved by a library.

The Kotlin type system does help though/is essential to correctly implement Option types where other languages like C# can not.

The essential part is you can/should define an Option type with a non-null upper bound. Otherwise you would have a Some() that still might contain a null value. So the side affect of solving NPEs you speak of is only there if a language actually supports non-null upper bounds.