3 ms·
The only reason to do that is if you want the compiler to check for typos: HTPP is caught, "htpp" isn't. It makes no sense for single letter constants of course
by fauigerzigerk 16y ago
The only reason to do that is if you want the compiler to check for typos: HTPP is caught, "htpp" isn't. It makes no sense for single letter constants of course.
- arethuza 16y agoIsn't that what unit testing is for?
- loewenskind 16y agoDo all your projects get 100% branch coverage? If not you'll probably want the compiler to help you where ever it can.
- riffraff 16y agoand to avoid silly warnings from some static analysis software (e.g. findbugs telling you you are repeating a hardcoded string N times and you could use a constant)