Why Nostr? What is Njump?
2024-08-01 17:26:01

Julia Evans on Nostr: this is extremely silly but somehow I never noticed that `range` in Go makes a copy ...

this is extremely silly but somehow I never noticed that `range` in Go makes a copy (https://go.dev/tour/moretypes/16) and I may or may not have spent 2 hours of my life debugging a bug caused by this

https://go.dev/play/p/tXGGz4syZ-f

Author Public Key
npub1ym9ddu2qh7rda8pxklq4gxw2kxhtm4cgvdvdy64z6agwy88nhuhqcnlm9y