Lua has the nifty feature that `map["hello"]` can ...
# announcements
n
Lua has the nifty feature that
map["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?
👎 5
v
nkiesel:
explicitly list all the properties
IMO the explicit solution is the good one, not the other way around