3 ms·
I wrote a small implementation of ListView in Kotlin a while back just to try it out [1]. The pros are pretty cool and some of the issues I mentioned in the re
by GeneralTspoon 11y ago
I wrote a small implementation of ListView in Kotlin a while back just to try it out [1]. The pros are pretty cool and some of the issues I mentioned in the readme have been fixed now (multiple constructors).
There are still a couple of issues though:
- Debugger functionality in IDEA (maybe it's been fixed now?). It was pretty unusable last I tried.
- (Android-specific) When extending Android framework classes you don't gain much benefit, since you'll be using the !! operator (override null-safety) a lot, and you'll be somewhat forced into a design pattern that takes away a lot of the power Kotlin offers.
If I were to use Kotlin, I'd use it for helper classes and extend View classes, etc. in plain old Java.
[1] https://github.com/T-Spoon/Kotlist https://github.com/T-Spoon/Kotlist