Why C++ doesn't support named parameter

Jobin picture Jobin · Jun 28, 2016 · Viewed 17.6k times · Source

Previously, I worked with python. In Python I used named parameter(keyword argument) for function calls. Wikipedia page about named parameter tells that C++ doesn't support it. Why C++ doesn't support named parameter?. Does it support in future version of C++ standard?

Answer

eerorika picture eerorika · Jun 28, 2016

Why C++ doesn't support named parameter

Because such feature has not been introduced to the standard. The feature didn't (and doesn't) exist in C either, which is what C++ was originally based on.

Does it support in future version of C++ standard?

Maybe. A proposal has been written for it. It depends on whether the proposal is voted into the standard.