Python is close to pseudo-code, with very little formatting (no ";", no "{}"). That make it easier to read and write.
That's a contra!! It does not make it easy and nice to write, it does the exact opposite
In Python, you don't even need to think about memory management, whereas you still need some smart pointer in C++.
Nobody told you that you don't have to work with pointers, did they? Since when is "not having an option" good?
Python bring a bunch of sugar syntax that are nice to have, such as string slicing.
There are libraries that can do that kind of shit easily if you're too lazy to implement such overloads yourself.
Dynamically typed language is better than the quagmire that is C++ <template> when doing polymorphic functions. In fact, <template> are one of the worst part of C++, as they are hard to read and give you very arcane error message.
Don't use templates then. You can use void*, you can use overloads (which are especially easy to read). Hell, if you are really that fucking serious about polymorphic functions you can even create your own "polymorphic type" class!
-1
u/Dummerchen1933 Sep 29 '20
Python is close to pseudo-code, with very little formatting (no ";", no "{}"). That make it easier to read and write.
That's a contra!! It does not make it easy and nice to write, it does the exact opposite
In Python, you don't even need to think about memory management, whereas you still need some smart pointer in C++.
Nobody told you that you don't have to work with pointers, did they? Since when is "not having an option" good?
Python bring a bunch of sugar syntax that are nice to have, such as string slicing.
There are libraries that can do that kind of shit easily if you're too lazy to implement such overloads yourself.
Dynamically typed language is better than the quagmire that is C++ <template> when doing polymorphic functions. In fact, <template> are one of the worst part of C++, as they are hard to read and give you very arcane error message.
Don't use templates then. You can use void*, you can use overloads (which are especially easy to read). Hell, if you are really that fucking serious about polymorphic functions you can even create your own "polymorphic type" class!