Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on My personal C coding style as of late 2023. Parent comment
Sometimes when I use C++, I will namespace them however:
namespace constants { static constexpr int name = 42; } … int x = constants::name;
There are no comments on this comment yet.
Sometimes when I use C++, I will namespace them however:
The exact name of the namespace would depend on the use and could be something more descriptive.