hey guys! i'm playing with flutter now. and found ...
# language-proposals
d
hey guys! i'm playing with flutter now. and found dart lang pretty interesting. have anything from this list considered as future kotlin feature? https://www.netguru.com/codestories/dart-from-kotli-perspective particularly i'm interested in spread operator and collection literals.
b
Kotlin does have the spread operator for arrays in varargs:
Copy code
val a = intArrayOf(1, 2)
val b = intArrayOf(3, 4)
val c = intArrayOf(*a, *b) // intArrayOf(1, 2, 3, 4)
And there's a proposal/discussion about collection literals here: https://github.com/Kotlin/KEEP/pull/112
i
Correct link to the discussion: https://youtrack.jetbrains.com/issue/KT-43871