logoalt Hacker News

eqvinoxtoday at 12:11 AM1 replyview on HN

I mean, yeah, but that function is really only an aid for the programmer in self-enforcing that rule; the compiler already knows whether the address of the variable is taken anywhere, and behave as is useful if it isn't taken anywhere…

Doesn't feel particularly valuable to have that "help" from the compiler against "accidentally" taking the address of a variable… I mean, how do you even accidentally do that?


Replies

flohofwoetoday at 7:58 AM

I guess you're not a fan of 'const' either? ;)

show 1 reply