4 ms·
C++ and C are no longer used for the same types of projects so C++ is not a better C.
by z_open 3y ago
C++ and C are no longer used for the same types of projects so C++ is not a better C.
- pjmlp 3y agoUntil C fixes its string and array story, C++ keeps being a better C.
- mgaunard 3y agoI think you must be from the 90s -- if so can you share your time machine? All kinds of major projects switched to C++ already, for example GCC. All the major new projects, for example LLVM, are also in C++ from the get-go. Even the Linux kernel is considering switching to C++ now.
- leosanchez 3y ago> Even the Linux kernel is considering switching to C++ now. Source?
- mgaunard 3y agohttps://www.phoronix.com/news/CPP-Linux-Kernel-2024-Discuss https://www.phoronix.com/news/CPP-Linux-Kernel-2024-Discuss
- franzb 3y agohttps://lore.kernel.org/lkml/3465e0c6-f5b2-4c42-95eb-29361481f805@zytor.com/ https://lore.kernel.org/lkml/3465e0c6-f5b2-4c42-95eb-2936148...
- kleiba 3y agoI wonder if Linus has changed his views on C++ too in the mean time. http://harmful.cat-v.org/software/c++/linus http://harmful.cat-v.org/software/c++/linus
- liquid153 3y agoNo they’re not
- rzzzt 3y agoA weird way to spell "Rust".
- mgaunard 3y agoI giggled -- thank you.
- andoaaaaz662 3y ago[dead]
- riku_iki 3y ago> Even the Linux kernel is considering switching to C++ now. considering doesn't mean it will happen in near future, because toolchains/ecosystem is not there, the same is applicable for many other projects.
- mgaunard 3y agoI'm not aware of any toolchain limitations; making the kernel compile as C++ is doable with a few trivial patches, and the kernel already is heavily GCC-specific, which supports both C and C++ to the same level.
- EasyMark 3y agoI have my doubts on c++ ever making it into the mainstream kernel while Torvalds is benevolent dictator. Especially since there is rust. I agree with the rest of what you said though.