3 ms·
It would cause argument names to become part of the function signature, which would be a significant change to the language, and its ABI.
by wavemode 2y ago
It would cause argument names to become part of the function signature, which would be a significant change to the language, and its ABI.
- wk_end 2y agoWouldn’t you be able to treat this as syntactic sugar - effectively you rearrange the arguments as needed and strip the labels. Doing that wouldn’t necessitate any kind of change to the ABI, I think.
- Gibbon1 2y agoYes it's basically designated initializers for function arguments. Interestingly designated initializers got added to C99 and then WG21 sat on their finger for 20 years before adding it to C++. It can't be anything but the most trivial thing to implement.