C++ Logo


Advanced search

Re: [std-proposals] Named argument

From: Ville Voutilainen <ville.voutilainen_at_[hidden]>
Date: Wed, 5 Apr 2023 10:07:45 +0300
On Wed, 5 Apr 2023 at 10:04, bmon Dor via Std-Proposals
<std-proposals_at_[hidden]> wrote:
> Named argument was proposed at Paper 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.

Working on it. No draft to show quite yet, a design exists, the
explanation of it and its rationale is work-in-progress, you
should see the paper before the summer meeting of this year.

Received on 2023-04-05 07:07:57