3 ms·
> ...and its syntax for me is worse than Java's Both C++ and Java have been improving their syntax in recent years. I'd recommend reintroducing yourself to the
by humanrebar 10y ago
> ...and its syntax for me is worse than Java's
Both C++ and Java have been improving their syntax in recent years. I'd recommend reintroducing yourself to the latest version of either.
- codedokode 10y agoBut 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.