I’m not a huge fan of “hacking” the `[]` bracket s...
# language-proposals
d
I’m not a huge fan of “hacking” the
[]
bracket syntax like that. I’d prefer one of two options: introduce totally new collections syntax, or leave it as-is. Doing anything else seems like it overcomplicates the standard library for no good reason. One of my favorite parts of Kotlin is that it’s light on syntax, and syntax doesn’t exist where it’s not obviously needed.
listOf
and friends are already extremely straightforward and usable, IMO. why have two ways to do that when you can have one?