DIP 1019--Named Arguments Lite--Community Review Round 1
Atila Neves
atila.neves at gmail.com
Mon Feb 18 10:13:21 UTC 2019
On Friday, 15 February 2019 at 17:38:23 UTC, Francesco Mecca
wrote:
> On Friday, 15 February 2019 at 13:49:04 UTC, Atila Neves wrote:
>> On Friday, 15 February 2019 at 12:56:45 UTC, Mike Parker wrote:
>>> [...]
>>
>> I'd add my library too as a possible library solution:
>>
>> https://github.com/atilaneves/kwargs
>
> I think that the solution proposed by Atila is better for the
> following reasons:
> 1. it is a library solution
> 2. allows both the user and the author of a library to specify
> functions with named parameters
> 3. it is very lightweight
>
> But it is not enough for the following reasons:
> 1. Works only on templates (I'd like someone to explain to me
> why)
That's not true - it works fine with regular functions.
> 2. Is opinionated about using ad-hoc types to represent data
> (the opposite of http://wiki.c2.com/?PrimitiveObsession)
Yes. I consider this to be a good thing, but then again, I would.
More information about the Digitalmars-d
mailing list