单继承树 still needs generics, my friend! that's why GJ is coming out. GJ won't be as flexible as template.But safer, simpler, more clean, no code bloating. tons of advantages. More importantly, you can ship your generic class file, (not source code) to other people. while in C++, not possible to create a tempalte lib without shipping your code and requiring the user to compile your source code.
C++ can do that? kidding?
that's why GJ is coming out.
GJ won't be as flexible as template.But safer, simpler, more clean, no code bloating. tons of advantages.
More importantly, you can ship your generic class file, (not source code) to other people.
while in C++, not possible to create a tempalte lib without shipping your code and requiring the user to compile your source code.