News for hackers. Stuff that matters.
Re:My personal C coding style as of late 2023 by harpiee on Monday October 09, 2023 @06:09AM (#37818785)
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
Re:My personal C coding style as of late 2023 by swah on Monday October 09, 2023 @06:20AM (#37818846)
Same, but maybe alternatively I'd accept:

    do_thing(Constants.foo)
as equally clear...