Modern C++: 7 Ways to Fake It Until You Have It
fluentcpp.com
fluentcpp.com
Giving some particular construct in your language the official name "Concepts" is just unbelievably fucking atrociously stupid. Inexplicably greedy and needlessly destructive.
Say what you will about Haskell's user-hostile jargon, but even they had the sense to rename a concept that was originally called "Idiom". (now "Applicative")
Imagine how much more fun we could have had if they had "concepts" in the language back then!
It is in the same category of lies like C++ calling its thing a class. (except C++ does not try to have math background)
I prefer a common name to a wrong and confusing name.
(okay, I guess it might be worse than that)
Compiler writers often extend the language with new keywords.
I still feel like a standard container is less fundamental than keywords, but I value your perspective.
My original point was simply that std::vector, say, is just as good a "keyword" as any - perhaps, not because you cannot redefine it but because you wouldn't, and if you didn't like what it does, you'd use/implement something else.
Seriously though, in my opinion, it makes the code horrible to read. Comments were invented to provide a programmer to programmer communication method. Stick with 1 C++ version (even that is a lot!). Migrate code slowly or not at all (there is very rarely a solid justification to rewrite working production code), and remember anything you rewrite will need fully tested (and you may still miss some edge cases). Your fellow programmer and team will thank you.
https://cgit.freedesktop.org/libreoffice/core/commit/?id=20b...
Other goodies:
SAL_FALLTHROUGH for [[fallthrough]] - see https://opengrok.libreoffice.org/xref/core/include/sal/types...
This is how you get your employer sued for copyright infringement
https://en.cppreference.com/w/Cppreference:FAQ
This states that the website's contents are licensed under CC-BY-SA and GFDL, both basically just requiring a link-back to the source. Furthermore, example implementations in reference websites are basically meant to be copy pasted. That's, like, the whole point of their existence.
Let’s say somebody copy-pastes half an example somewhere else. Should that have a link back, too?
I think, the smaller the fragment copied, the harder this is.