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

kyonifer

04/07/2017, 2:52 PM
array literals are definitely my #1 choice. unsigned and value types (for a efficient complex type) would be useful
t

trevjones

04/07/2017, 4:07 PM
array literals are high up on my list as well. so tired of doing
arrayOf(SomeThing::class)
for annotation params. Pretty sad when the java sytax is shorter than the kotlin syntax. Also wish you could omit the
::class
when you are passing it into something that takes a class. should be capable of inference.
b

bjartek

04/07/2017, 6:12 PM
Agreed
k

kirillrakhman

04/07/2017, 6:42 PM
@trevjones array literals for annotations are already implemented on GitHub. I think the request is about usage outside of annotations
t

trevjones

04/07/2017, 6:44 PM
amazing. quick search confirms. https://github.com/JetBrains/kotlin/search?utf8=%E2%9C%93&q=array+literals&type= Now if only we could get the
::class
to be inferred
also do we know if that is planned for 1.2? releasing anno array literals.
2 Views