nkiesel
02/23/2017, 7:58 PMmap["hello"]
can be written as map.hello
(as long as the key is a valid identifier). That's Lua's way to compensate for not having classes with properties. The by map
property delegate in Kotlin does something similar, but requires to explicitly list all the properties. Any chance that Kotlin would be able to do the same?voddan
02/23/2017, 8:27 PMexplicitly list all the propertiesIMO the explicit solution is the good one, not the other way around