4 ms·
I mean it's a great idea, and I fully agree that I do not want to worry about memory allocation. So then why is `make` a thing? And why is `new` a thing? And wh
by nulld3v 2y ago
I mean it's a great idea, and I fully agree that I do not want to worry about memory allocation. So then why is `make` a thing? And why is `new` a thing? And why can't I take an address to a primitive/literal? And yet I can still take an address to a struct initialization? And why can't I take an address to anything that's returned by a function?
- assbuttbuttass 2y agohttps://go.dev/ref/spec#Address_operators https://go.dev/ref/spec#Address_operators