Conversation
|
A vote against. Now, if a future programmer wants to test something related to hs color, they have to go through the code in various places, and probably miss something. This constant may or may not change, no one knows, but then again, the constant PI will never change for all eternity, yet using the number There is also the impossibility to javadoc such hard-coded constants, as well as other practical disadvantages. |
|
These are not global constants and are only used in one place. If there is a need for multiple usage in a function, it is better to host them within the function's package. |
|
If by "global" you mean system-global and not library-global, then there might never be any more Constants other than the max memory. HS color default was used in 3 files from 3 packages. Make it a constant inside Anything would be better than hard-coded values. But you know, whatever. Just thinking about a poor future fellow programmer sifting the code for instances of 0xff000000, like we had to do for other constants on several occasions (so it's not just theoretical whining). |
|
Default colors are declared the same way in all theme rules, e.g. |
No description provided.