Overall gist seems like let's copy Rust cool stuff, but overthink it to the point of absurd and mess it up to maintain fake C compatibility, because that's what C++ always stands for! (;
Announcement
Collapse
No announcement yet.
C++20 Draft Approved As Major Update To C++ Programming Language
Collapse
X
-
Originally posted by mb_q View PostOverall gist seems like let's copy Rust cool stuff, but overthink it to the point of absurd and mess it up to maintain fake C compatibility, because that's what C++ always stands for! (;
Originally posted by gufide View PostOf course, if there was a well defined way to break ABI or define multiple ABI a change could be done and these would be truely zero overhead, but right now it cannot be done, not on unix like platform.Last edited by kpedersen; 06 September 2020, 07:27 PM.
- Likes 5
Comment
-
Originally posted by Brane215 View PostGreat. As Linus has pointed out, great value of C++ is to keep lure morons away from kernel crowd.
- Likes 7
Comment
-
Originally posted by SledgeHammer_999 View Post
If you want to edit the implementation you only have to edit the relevant .cpp file. You touch the header file only if you change function signatures or add/remove functions.
As for the bold part: I don't think that ability is hindered by the split into header and .cpp files.
Comment
-
Originally posted by SledgeHammer_999 View PostIf you want to edit the implementation you only have to edit the relevant .cpp file. You touch the header file only if you change function signatures or add/remove functions.
As for the bold part: I don't think that ability is hindered by the split into header and .cpp files.
I'm sitting at a computer for goodness sakes, why isn't the computer doing this busy work for me?
In an ideal world, the compiler would parse the source code to figure out the function signatures by itself, then store that information in the resulting .o or .so files so that nobody down the line ever needs headers.
- Likes 1
Comment
-
-
Originally posted by RealNC View PostThe idea of "zero cost abstractions" in C++ is great. Too bad many of them turn out to not be zero cost at all in the actual implementations of the standard library. If you watch those "modern C++" conference videos on youtube, all is presented nice and dandy. "Use std::tuple, it's free!" Or "use std::unique_ptr, it's free!" Well, they're only "free" in some imaginary, theoretical implementation that doesn't exist :-/
- Likes 1
Comment
-
Originally posted by andreano View PostSceptical about: What modules will do to compilation speed.
Originally posted by andreano View PostWill compilers treat everything as one compilation unit (as rustc 1.0 did)?
- Likes 2
Comment
-
Originally posted by increasechief View PostCould this language be any more of a mess: https://en.cppreference.com/w/cpp/memory/to_address
- Likes 2
Comment
Comment