Callback node - minar::detail namespace#26
Conversation
|
I feel like |
|
"minar/minar-internal-headers" does repeat "minar" redundantly. The detail namespace & header names are separate issues though. It seems like a good idea to use a detail namespace here, as this header is included implicitly, so someone's IDE might start auto-completing minar::CallbackNode, encouraging its use without someone being aware that it's an internal API. |
|
I don't care what the internal namespace is, but let's be consistent. I picked I would like to see the header file names changed, where possible, to "hpp" for C++-only headers, to indicate that they only work with C++ code. |
Same here, I am proposing using a namespace rather than module-internal-file_type folder thing. The namespaces for modules are for example in yotta docs ❓ That's something we can figure out where to place in the separate thread. Back to the original question: module-internal-headers / +sources vs module/detail/*. I would like us to fix it here, then propagate this to other modules (there are open PR to other modules which have detail used as proposed here). cc @mjs-arm |
Late for a party in #24, shall we use detail namespace for internal things? (There are already PR in the core-util with detail), lets agree on "internal" namespace name and how to do it in our modules.
@bogdanm @autopulated @bremoran