Object Literals and Object Literals struct
I’ve been wondering for so long if Kotlin will have object literals.
Object Literals:
val someObj = { name: "steve", email: "
steve@email.com", password: "stevethebest" }
Object Literals Struct:
fun someFun( arg: { name: String, email: String, password: Email } )
Why does this make sense?
Some languages already have this feature, like Dart and JavaScript.
Improve functional programming:
Since a function can only have one argument, this literal object argument will be very helpful. It helps...