C++ Logo

std-proposals

Advanced search

[std-proposals] Named argument

From: bmon Dor <dorbmons_at_[hidden]>
Date: Wed, 5 Apr 2023 15:03:47 +0800
Named argument was proposed at Paper
<https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2014/n4172.htm> ten
years ago but it was rejected by the reason "lack of sufficient motivation
for the change.".However, the situation has changed a lot now. Descriptive
UI is quite popular now. In that style, you can define a Text Like this:
Text("Hello world", style: TextStyle())
And there is no need to fulfill all other needless arguments(their values
are default).
By the way, a lot of modern languages have this feature like Python, Dart.

Received on 2023-04-05 07:03:59