HNHacker News
TopNewBestAskShowJobs

iovec

2 karma · joined January 17, 2021

submissionscomments
iovec··on Proposal: expression to create pointer to simple types
Since it doesn't seem like this was answered in the other discussion, the answer is that Go does not allow taking the address of a map value. You get a compile-time error: "cannot take the address of m[x]".

https://play.golang.org/p/rX8A6ez9fVx