Hacker News Comments on
C++20: Reaching for the Aims of C++ - Bjarne Stroustrup - CppCon 2021
CppCon
·
Youtube
·
11
HN points
·
1
HN comments
- This course is unranked · view top recommended courses
Hacker News Stories and Comments
All the comments and stories posted to Hacker News that reference this video.I was just tonight watching Bjarne’s cppcon 21 talk[1] and he does not seem to think they’re dead.OTOH, from what I can tell my compiler of choice, clang, has not improved its support since last time I dabbled with it unsuccessfully. But I could be Doing It Wrong. There seems to be very little stuff on the internet about actually using them which is not a great sign.
⬐ BostonianIs there a comparable written document by Stroustrup?⬐ tialaramexHere'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.