> Does anyone else think the Kotlin syntax for array literals is super ugly:
Well yeah, except it's really that Kotlin does not have array literals at all, arrayOf is just a variable-arity function.
Well yeah, except it's really that Kotlin does not have array literals at all, arrayOf is just a variable-arity function.
For example:
let x = [1, 2, 3] // produces Array
let y: MyType = [1, 2, 3] // produces MyType
f([1, 2, 3]) // produces whatever type f() takes