array literals are definitely my #1 choice. unsign...
# announcements
k
array literals are definitely my #1 choice. unsigned and value types (for a efficient complex type) would be useful
t
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
Agreed
k
@trevjones array literals for annotations are already implemented on GitHub. I think the request is about usage outside of annotations
t
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.