5 ms·
As much as i dislike C++.. Std is invaluable in comparison to home baked C libs
by dgan 5y ago
As much as i dislike C++.. Std is invaluable in comparison to home baked C libs
- qwerty456127 5y agoIs there still no good semi-standard library for C?
- pjmlp 5y agoThat is why POSIX was born, the semi-standard library for C that ISO/ANSI did not want to have.
- qwerty456127 5y agoYet, apparently it is not sufficient as people still have to migrate to C++?
- pjmlp 5y agoBecause C is still stuck in a PDP-11 mindset, without any proper strings or vector types, modules, namespaces,... there is very little help from POSIX there.
- qwerty456127 5y agoC++ has proper strings?
- pjmlp 5y agoMore than C will ever have, https://en.cppreference.com/w/cpp/string https://en.cppreference.com/w/cpp/string
- qwerty456127 5y agou8string is meant to be UTF-8? So we now can use strings easily and safely, more or less the way we use them in Python (except still having to free the memory manually)? Why do people still use C then? In what aspects is it better than C++? Is C++ less portable than C?.