Named parameters

Jacob Carlborg via Digitalmars-d digitalmars-d at puremagic.com
Sat Jul 25 07:49:02 PDT 2015


On 2015-07-25 13:02, Gary Willoughby wrote:

> When showing code don't purposefully make it verbose to strengthen your
> case. Here is how Flag is usually used:

I didn't, I just copied it from the documentation. I never used it myself.

>    getLine(Yes.keepTerminator);
>
> Which is way more readable. Named parameters are not needed!

I disagree, Flag/Yes/No is a gigantic ugly hack.

-- 
/Jacob Carlborg


More information about the Digitalmars-d mailing list