#cpluplus — Public Fediverse posts
Live and recent posts from across the Fediverse tagged #cpluplus, aggregated by home.social.
-
So apparently when called on the wrong variant, [expected::value](https://en.cppreference.com/w/cpp/utility/expected/value) throws but [expected::error](https://en.cppreference.com/w/cpp/utility/expected/error) is UB???
I'm flabbergasted at C++'s ever renewed ability to defy the principle of least astonishment.
-
Query Your C Code. ClangQL is a tool that allow you to run SQL-like query on C/C++ Code.
https://hackaday.com/2024/04/08/query-your-c-code/?utm_medium=erik.in&utm_source=mastodon
-
I don't know if it's peak lazy or peak "engineering" but I just read someone argue for "sizeof expression" and against "sizeof(type)" because the former is two characters shorter. 🤦♂️
[for brevity, omitting other aspects of the argument]
No, they weren't discussing writing the smallest program or anything like that.