4 ms·
> Like e.g. in Java it was common to have a comment on a simple (!) setter, telling you "this sets X" Given the prevelance of mutating functions in Java this i
by medo-bear 2y ago
> Like e.g. in Java it was common to have a comment on a simple (!) setter, telling you "this sets X"
Given the prevelance of mutating functions in Java this is welcome
- OtomotO 2y agoNo, it's not. Because it doesn't add anything. Just document if something is mutating and what it mutates. Or simply name your functions accordingly. Like of your setter is doing a HTTP call, maybe name it so that it's obvious.