I\'m developing a class with several lateinit properties of one type. I think it\'s too verbose to declare each of them on separate line like this:
Looking at the grammar this is not possible:
property (used by memberDeclaration, declaration, toplevelObject)
: modifiers ("val" | "var")
typeParameters? (type "." | annotations)?
(multipleVariableDeclarations | variableDeclarationEntry)
typeConstraints
("by" | "=" expression SEMI?)?
(getter? setter? | setter? getter?) SEMI?
;
You can only do destructing declarations with:
val (name, age) = person