2 ms·
Raii is enough of a reason IMO, but templates, type safety, actual arrays, constexpr, and various modern changes to the language that allow for the compiler to
by maccard 5y ago
Raii is enough of a reason IMO, but templates, type safety, actual arrays, constexpr, and various modern changes to the language that allow for the compiler to optimise code (move semantics and RVO)
- dralley 5y agoThose are all fantastic reasons to use relibc, the libc written in Rust, which has the additional benefit of already existing. https://gitlab.redox-os.org/redox-os/relibc https://gitlab.redox-os.org/redox-os/relibc
- maccard 5y agoSorry I missed this reply. I do'nt disagree, but honestly at this point anything is better than using C for libraries like this.
- mhh__ 5y agoFunction overloading and more places to use default values was enough to make me go mental last time I had to use strict C as opposed to limited C++