News for hackers. Stuff that matters.
Re:Kotlin is now Google’s preferred language for Android app... by vbezhenar on Wednesday May 08, 2019 @03:36AM (#19856665)
Kotlin has its own (much better IMO) alternative to streams: Sequence. I see absolutely no reason to use streams in Kotlin.
Re:Kotlin is now Google’s preferred language for Android app... by sievebrain on Wednesday May 08, 2019 @03:50AM (#19856738)
The Java 8 streams library can auto parallelize things. That's the main reason it was created in fact!
Re:Kotlin is now Google’s preferred language for Android app... by elcomet on Wednesday May 08, 2019 @03:52AM (#19856749)
One simple reason: you already know streams and don't have time to learn sequence.
Re:Kotlin is now Google’s preferred language for Android app... by ptx on Wednesday May 08, 2019 @06:42AM (#19857583)
Streams is mostly just Java's version of what many languages already had, so the concept was something new to learn for Java developers, but once they know it they shouldn't have much trouble with Kotlin's sequences – or with Python's list comprehensions, Lisp's mapcar, and so on.
Re:Kotlin is now Google’s preferred language for Android app... by EdwardDiego on Wednesday May 08, 2019 @05:16PM (#19863045)
Sure, but the point is, you can.