Re:Fun with C++26 reflection: Keyword Arguments
by drysine on Tuesday February 11, 2025 @05:47AM
(#43011292)
>hides what the code actually does.
As does any function call.
Re:Fun with C++26 reflection: Keyword Arguments
by f1shy on Tuesday February 11, 2025 @07:33AM
(#43012054)
God forbids! I want functions to hide HOW is it done, not WHAT. One thing is abstraction, the other is obfuscation.
For example, using C++ 20 ranges over simple loops is an example of where brevity and “cleanliness” can reduce clarity because the heavy templating and operator overloading hides what the code actually does.
On the other hand, sometimes one can’t avoid the complexity when writing a library that aims to work on many platforms, and with special tricks such as SIMD, as is present in the Eigen library.