4 ms·
I do it mainly as a form of namespacing and aid in readability. do_thing(foo); // foo is variable do_thing(FOO); // FOO is constant (i.e this call should
by harpiee 3y ago
I do it mainly as a form of namespacing and aid in readability.
do_thing(foo); // foo is variable
do_thing(FOO); // FOO is constant (i.e this call should always do the same thing)
foo = FOO; // I wanna name a variable the same as a constant
- swah 3y agoSame, but maybe alternatively I'd accept: do_thing(Constants.foo) as equally clear...