4 ms·
It may be a hint to modern compilers, but it's also the documentation of intent for future developers[1]. [1] Where future developers includes me - I'll forge
by smoyer 12y ago
It may be a hint to modern compilers, but it's also the documentation of intent for future developers[1].
[1] Where future developers includes me - I'll forget what I wrote in six months or less.
- mattstreet 12y agoNot just as documentation, it would prevent another developer from accidentally modifying it.
- smoyer 12y agoExcellent point ... I kind of assumed that (your IDE giving you a warning that you're trying to modify a constant) when I was thinking about it as documentation but your point more succinctly describes "making it hard to make mistakes".