3 ms·
Ah I see ! Gotcha :) Yes, it seems Go is smart enough not to eliminate those values entirely. I think this might be a better way to be sure that the function
by agnivade 9y ago
Ah I see ! Gotcha :)
Yes, it seems Go is smart enough not to eliminate those values entirely.
I think this might be a better way to be sure that the function will be computed entirely.
`_ = myatan2(-479, 123)`
The result is same though. I will update the post.
- aleksi 9y agoEven better is to make a global var sink interface{}, and assign to it. https://github.com/golang/go/issues/14813 https://github.com/golang/go/issues/14813