3 ms·
Ack, it autocorrected from “dedupe”. Also, you are referring to an orthogonal problem—you would presumably want to put magic constants into a static constant t
by monadic2 6y ago
Ack, it autocorrected from “dedupe”.
Also, you are referring to an orthogonal problem—you would presumably want to put magic constants into a static constant to reduce the chances of disagreement across references. Hell even if there’s a single usage I would expect magic constants to be clearly demarcated and documented.
Edit: didn’t see sibling constant, didn’t mean to dupe the reply itself. This certainly refers to in-line use of numeric literals vs those used in constant definitions.