Better HN
topnewbestaskshowjobs
Log inSign up

iovec

2 karma · joined Jan 17, 2021 (5y ago) · 2 submissions

Submissions

1.

Perforator: Record exact perf metrics for individual functions of an ELF binary(github.com ↗)

1 points · by iovec · 5y ago · discuss

comment 5y ago · link · parent

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