DIP 1019--Named Arguments Lite--Final Review
Olivier FAURE
couteaubleu at gmail.com
Thu Aug 29 21:53:36 UTC 2019
On Wednesday, 28 August 2019 at 09:37:13 UTC, nkm1 wrote:
> On Wednesday, 28 August 2019 at 09:00:08 UTC, Olivier FAURE
> wrote:
>> With all that said, I still think the way Andrei asked "well
>> why didn't you just use Walter's version and ignore everything
>> else?" is a little presumptuous.
>
> Well, it's not just because Walter proposed that. It's also
> because his proposal is the most obvious one. There is already
> designated initialization syntax for arrays and structs, so
> having something different for parameters to a function
> requires, at least, some justification. Espectially considering
> the fact that some programming languages don't have named
> parameters and instead use associative arrays literals (Perl,
> Lua).
I don't think it's obvious. There's trade-offs to consider, that
people have spent pages debating.
More information about the Digitalmars-d
mailing list