I'm a new C++ learner, and I've been thought to use #include and header files to import files from other libraries or files (such as the stdlib). However, I recently came across "modules" in C++ 20. Should I be using modules instead of #include?
Furthermore, if I should be using modules, are there still benefits to using a .h file + header guard + .cpp file instead of just importing a module from a .cpp file? The only benefit I can think off the top of my head is abstraction.
#include
– Mejia#include
and header guards for now, and maybe look into modules again once C++ 23 comes out. Thank you all! – Incalescent