Re:Go CheckLocks Analyzer
by maerF0x0 on Wednesday December 29, 2021 @06:33PM
(#29731529)
i wonder if it might be helpful to go a step further and define an alias type that has the tag applied and accesses examined?
[ Parent
| on HN ]
Re:Go CheckLocks Analyzer
by numbsafari on Wednesday December 29, 2021 @11:43PM
(#29733690)
What’s nice about the current approach is that it is explicitly stated at the point of the variable declaration, and not hidden away in some far off place.
Also, it doesn’t require you to import a package, it’s completely orthogonal to the consumer of the code. They can opt in if they want, others aren’t forced to import anything.