Named parameters
Jonathan M Davis via Digitalmars-d
digitalmars-d at puremagic.com
Sat Jul 25 16:05:38 PDT 2015
On Saturday, 25 July 2015 at 21:14:00 UTC, Walter Bright wrote:
> On 7/25/2015 6:54 AM, Andrei Alexandrescu wrote:
>> On 7/25/15 6:32 AM, Jonathan M Davis wrote:
>>> If Andrei weren't insisting that we use that idiom everywhere
>>> in Phobos,
>>> I'd honestly just be using bools and be done with it. It adds
>>> some
>>> value, but I seriously question that it's worth the extra
>>> verbosity. But
>>> regardless, I'd hate to see named arguments get added to the
>>> language
>>> just to clean that mess up.
>>
>> Honest I didn't insist, and am a bit surprised that it did
>> catch up. -- Andrei
>
>
> Well, somebody was insisting and my PR's wouldn't get pulled
> without converting to it. Bluntly, I think insisting on using
> Flag instead of bool is not worth the bother.
Several of those with commit access seem to have taken a liking
to it and insist that it's best practice, and I'm not enthused
about it either. Maybe some of those same devs would like to have
named arguments as well. I don't know.
- Jonathan M Davis
More information about the Digitalmars-d
mailing list