Order of evaluation for named arguments
Walter Bright
newshound2 at digitalmars.com
Tue Apr 1 19:00:49 UTC 2025
On 3/30/2025 6:21 PM, Jonathan M Davis wrote:
> It might, but most folks don't even realize that named arguments are a thing
> in D, and most code doesn't rely on the order of evaluation of the arguments
> to a function. As such, I would expect that the amount of code that would
> actually break would be extremely small (and possibly zero).
>
> Most bug fixes risk silently breaking some piece of code that accidentally
> relied on the broken behavior, and I think this is a case where the odds of
> it actually causing problems are sufficiently low that it's worth just
> making it all consistent - and the sooner we do it, the less likely it is to
> break any code.
It's a good argument, but we really have no idea how much code depends on named
arguments. I'm also really tired of the vitriol we get when breaking existing code.
More information about the Digitalmars-d
mailing list