Kotlinlang: val as optional declaration
on the matter of locally scoped function declarations which are extremely constrained in terms of modifiers, limited almost exclusively to
val foo:Any=thing()
the language could be made ever so slightly more compact, readable and sensible by making the ‘val’ function-scoped declaration tokens an optional suggestion to hint that what we want is to declare
foo=thing()
or
(foo1,foo2)=thing()
I find no reason to believe that in the scope of a function this would impose any backwards compatibility...