3 ms·
Sure a good thing, but for me also a good example, why I changed from C/C++ to a scripting language. In application development, you seldom have the need for m
by PythonicAlpha 12y ago
Sure a good thing, but for me also a good example, why I changed from C/C++ to a scripting language.
In application development, you seldom have the need for maximum speed in all your coding. And always worrying about such things as what is addressed by this small enhancement, is a pain.
In most scripting languages, such details are just falling away.
I still program in C/C++ -- but just for very speed-intensive "hot-spot" functions, in form of Python enhancement modules. And in those, I have the time and patience to look for all these implementation details. All the rest, I do in Python.
- bstamour 12y agoYou won't need this enhancement in C++ if you just use `std::vector` or `std::array`.
- PythonicAlpha 12y agoI was talking about Python enhancement modules -- and no, I won't consider C++ a good replacement for Python.
- bstamour 12y ago> In application development, you seldom have the need for maximum speed in all your coding. And always worrying about such things as what is addressed by this small enhancement, is a pain. That's what my comment was addressing: In C++ with vector, map, etc, you don't need to remember to safely realloc manually, because the containers do it for you automatically.
- PythonicAlpha 12y agoMight be, but in C++ there are still enough problems lingering, that using Python is worthwhile. Many workarounds have been forged in C++, but still there are so many problems lingering and to use C++ right, you really must be a master of a language that is 3 times as difficult to learn than most other programming languages.
- markrages 12y ago"C/C++" isn't a language.
- dragonwriter 12y ago> "C/C++" isn't a language. Under the current standards, isn't C a proper subset of C++, and therefore, isn't "C/C++" just a way of saying "C++" that emphasizes that that includes C? Or are you saying C++ isn't a language?
- readerrrr 12y agoSubset? No. Neither language is a subset of the other. "C/C++" is a word coined by recruiters/human resources department.
- bnegreve 12y agoC isn't a subset of C++ (eg see [1]) but more importantly proper C++ has very little to do with C. In my experience people use "C/C++" to refer to "C with class compiled with a C++ compiler" rather than to "C or C++". [1] http://stackoverflow.com/questions/1201593/c-subset-of-c-where-not-examples http://stackoverflow.com/questions/1201593/c-subset-of-c-whe...
- dragonwriter 12y agoI had thought I remembered reading somewhere that C++11 had made C++ a superset of C (I haven't used C++ in anger in quite a long time), but from further reading while it has closer aligned with C it hasn't actually subsumed it.
- bstamour 12y agoModern C and modern C++ are closer to siblings now, with the parent being K&R C. Each has added features that the other has not embraced, and writing code in one like you would in the other is a recipe for pain and suffering.
- 12y ago