4 ms·
I agree with the points made about python, but most of the C++ complaints were addressed in C++11. These days, you get extremely powerful type checking with sa
by hedora 9y ago
I agree with the points made about python, but most of the C++ complaints were addressed in C++11. These days, you get extremely powerful type checking with sane compiler errors.
One cool example is the JSON for modern C++. You can write stuff like this:
json j = ... // read json
my_struct s = j;
and the compiler will check (recursively) that there is a complete my_struct deserializer. At runtime, it presumably avoids virtual method invocations as a bonus.
I get that some people want a GC, but python feels lower level than C++ to me these days.
- ceronman 9y ago> python feels lower level than C++ to me these days. Yes I know that C++11 has a lot of cool things, but I find hard to believe it's higher level than Python. Even for simple things, C++ code tends to be several times bigger than the Python equivalent. Yes C++ might be faster, but when you need agility, to build a prototype or a script really quickly Python is many times better than C++ (in agility)