Hacker Newsnew | past | comments | ask | show | jobs | submit | zerofrancisco's commentslogin

c++ 11 & 14 goodies: concepts, lambdas


Concepts are part of the language from C++20.


A good source of information for what is new in C++ versions: https://www.modernescpp.com/index.php/thebigfour

That article covers the big four new features:

- concepts

- modules

- coroutines

- ranges library


Wow. I haven’t touched C++ in maybe 18 years or so. This actually looks somewhat high level.

It mentions that modules will improve compilation times. How are compilation times these days? That was one of my least favorite aspects of C++ back in the day.



C++ compilers keep improving and compile times have gotten noticeably quicker for me, especially the linker step which used to take forever.

It is possible to have a fast C++ build, but it still requires diligence, ie avoiding including massive headers everywhere & using lots of forward declarations etc.

Many code bases don't do this so they end up with ~forever builds.


They still allow for lots of sword fighting!


Only 20 years late, to the point where I think the design is almost outdated already (concepts can almost be done as a library if you provide the right tools a la dlang std.traits)


Excellent caveats and suggestions to do good bash. Thank you! :)


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: