3 ms·
There are a lot of arguments surrounding this subject. Just came in here to chime about how I miss named arguments in c++. Sure, I can emulate them [0] but at t
by nurettin 6y ago
There are a lot of arguments surrounding this subject. Just came in here to chime about how I miss named arguments in c++. Sure, I can emulate them [0] but at the cost of ide support, runtime and compile time.
https://github.com/nurettin/pwned/blob/770144a15efe7ab96bf4d0414bcaf7424e9a9118/parameters/tests.cpp#L15 https://github.com/nurettin/pwned/blob/770144a15efe7ab96bf4d...
- cma 6y agoThey are effectively in C++20 without real penalty (designated initializers).
- nurettin 6y agoYes, designated initializers help initialize a dto, much like what C# did back in 3.0 times. I wish they did something similar to function parameters so we didn't even have to create a data transfer object.