6 ms·
> In C++, tons of information is needed from the user in order to make it work, while Python comes with a lot of built-in data structures like vectors, dictiona
by kenniskrag 6y ago
> In C++, tons of information is needed from the user in order to make it work, while Python comes with a lot of built-in data structures like vectors, dictionaries and iterators that make it easier to use right out of the box.
just wrong
- Kenji 6y agoYeah haha, it's particularly funny because the C++ STL supports: - vectors: http://www.cplusplus.com/reference/vector/vector/ http://www.cplusplus.com/reference/vector/vector/ - maps (dictionaries): http://www.cplusplus.com/reference/map/map/ http://www.cplusplus.com/reference/map/map/ - iterators: http://www.cplusplus.com/reference/iterator/iterator/ http://www.cplusplus.com/reference/iterator/iterator/ right out of the box since the very first ISO C++ standard.
- ktpsns 6y agoThe "tons of knowledge" are "just" the STL. It is a template library and thus needs knowledge of the concept of templating. So that's quite some knowledge required compared to list usage in Python, which doesn't require a single include line. Of course, the situation is basically the same if you replace C++ by Java. Or Python by Ruby.
- kenniskrag 6y agoThe difference is strong typed vs. loosely typed languages. In an IDE you see a popup with a "quick fix" for missing includes.