Subject: Re: [std-proposals] Proposal: template function solution to Pythonic optional function arguments
From: Ville Voutilainen (ville.voutilainen_at_[hidden])
Date: 2020-07-20 15:52:51
On Mon, 20 Jul 2020 at 23:43, Jason McKesson via Std-Proposals
> > Straight-up named parameter calling (not looking for any variadic nonsense Ã la *args/**kwargs)
> That right there is kind of a problem: if you can't forward named
> parameters to another function, then you break a lot of very useful
> use cases. You can't `emplace`-construct any object with named
> parameters, for example.
> I would consider that a non-starter for such a feature.
There's a very easy way to avoid that problem: keyword parameters need
to be last and arguments for them
can be provided positionally, without a name. Then you can forward
them just fine.
STD-PROPOSALS list run by herb.sutter at gmail.com
Standard Proposals Archives on Google Groups