4 ms·
C++ is becoming Java.
by faragon 10y ago
C++ is becoming Java.
- Koshkin 10y agoThis is one of the nicer things one could say about C++. Indeed, it is possible now to write C++ almost as if it was Java and still produce a reasonably efficient code!
- faragon 10y agoSure. That was my point, no pun intended.
- humanrebar 10y agoThat's not really possible without modules and a first-rate dependency injection framework.
- tathougies 10y agoCare to explain? Aside from garbage collection, C++ has basically always had all Java language features. If anything, I would argue that C++ is mostly a superset of Java, since it includes strictly more -- for example, much better support for type-generic programming.
- faragon 10y agoJava had built-in many features that C++ didn't (e.g. threading, mutexes, timers, sockets, etc.)