Re:C++20 Idioms for Parameter Packs
by 1024core on Tuesday February 27, 2024 @12:03PM
(#39526454)
I wish they would just freeze the definition of C++ Language for a couple of decades. Just because something is "neat" and "possible" does not mean that it must become a part of the language. C++ today is a syntactic hell.
[ Parent
| on HN ]
> I wish they would just freeze the definition of C++ Language for a couple of decades.
They did that already. C++03 -> C++11.
Other languages marched forward and left it in the dust with things like lambdas, reflection, etc.
Re:C++20 Idioms for Parameter Packs
by Night_Thastus on Tuesday February 27, 2024 @01:26PM
(#39527589)
If you don't want to use it, don't use it. Target whatever C++ version you want and stick with it.
Unfortunately I work with other people who insist on using the latest and greatest addition that comes along. :-(
Re:C++20 Idioms for Parameter Packs
by Night_Thastus on Wednesday February 28, 2024 @10:56AM
(#39539592)
Well, hopefully they:
* Are good at documenting
* Communicate what and why they chose it during code reviews
* Encapsulate their work behind sensible functions/APIs that don't require intimate knowledge of complex internals
And if they aren't, that's worth bringing up to them. If it's still a problem it's worth bringing up to your team/project lead or otherwise.