Default argument values

Nick Sabalausky a at a.a
Thu May 20 17:00:56 PDT 2010


"div0" <div0 at users.sourceforge.net> wrote in message 
news:ht49le$jgu$1 at digitalmars.com...
>
> Yeah, I've gone off default arguments, there is rarely a defensibly good
> default argument, and you can achieve exactly the same functionality
> with overloads.
>

I often use default args as a shortcut for overloads (where applicable). And 
I've often had cases where default args were useful for getting a good 
combination of "super-simple interface for typical cases" and "high 
configurability for when it's actually needed". 




More information about the Digitalmars-d mailing list