https://kotlinlang.org logo
#announcements
Title
# announcements
e

egorand

11/28/2017, 4:36 PM
Looks like passing varargs as named parameters got deprecated and the auto-fix changes it to
*arrayOf()
which is kinda verbose. Is there a better way?
y

yole

11/28/2017, 4:45 PM
this is the intended way
e

egorand

11/28/2017, 4:51 PM
okay, thank you
r

Ruckus

11/28/2017, 4:53 PM
Personally, I think the new way is the better way. It follows the Kotlin ideology of being explicit. Defining an
Int
when a
vararg Int
is expected always felt a bit like implicit magic to me.
2 Views