3 ms·
I like a succinct way to define immutable variables. That’s what I do by default in Swift let str = “foo” let age = 10 Kotlin does this with val, which
by melling 7y ago
I like a succinct way to define immutable variables. That’s what I do by default in Swift
let str = “foo”
let age = 10
Kotlin does this with val, which is great.
How do Scala and Kotlin compare?
Next time I’m back on the JVM, I’d like to one of these two, perhaps both if they interoperate.