3 ms·
But the header files are still there, aren't they? One still has to write a method name and arguments twice.
by codedokode 10y ago
But the header files are still there, aren't they? One still has to write a method name and arguments twice.
- humanrebar 10y agoYou're talking C++, clearly. First, you could write things header-only and avoid repeating yourself if that's your concern. Much of boost is written this way. There are advantages and disadvantages to that, but it's less code. Second, there are experimental modules systems available that avoid many of the disadvantages of header-only code. If things go well, modules will be standard in C++20. There are certainly things I would improve about the syntax of Java and C++, but both are improving quickly in that regard.