4 ms·
C++20: Reaching for the Aims of C++ – Bjarne Stroustrup – CppCon 2021
- Bostonian 5y agoIs there a comparable written document by Stroustrup?
- tialaramex 5y agoHere's what Bjarne (after decades) thinks C++ should some day be able to aspire to: import std; int main() { std::cout << "Hello, modern world!\n"; } Now let's contrast what cargo gives you by default today for any new program (Rust's cargo automatically gives you a Hello, World program to begin with in your new project): fn main() { println!("Hello, world!"); } Even all these years later, Bjarne is still happy with a main() function which claims to return an integer but doesn't bother to actually do so. I believe this reflects the continued belief in the "subset of a superset" approach to evolving C++. Yes, says Bjarne, obviously some parts of C++ are terrible and must be eliminated, but, let us first grow C++ to include these other features I'm interested in. Like a child who agrees that they ought to eat the vegetables, but, first they insist on sauce for the icecream on their dessert. Somehow it seems as though the vegetables are never eaten because more dessert is always desired first.