<https://stackoverflow.com/questions/61912898/muta...
# announcements
d
Its only available for maps with string keys. This method specifically exists to allow
var foo by <some map value>
syntax, you should probably not call it directly. Just use
map[key] = value
👍 1
e
Vielen Dank! Nice one. Didn’t even see that coming. What’s the usage of it if we should never use it?
d
Like I said, it is there to enable property delegation to maps. If you write
var foo by map
then accessing
foo
will access
map["foo"]
. More info on delegation.
🙏 1
👍 1