Pretty please: Named arguments

Jonathan M Davis jmdavisProg at gmx.com
Mon Feb 28 18:39:30 PST 2011


On Monday, February 28, 2011 17:48:46 Andrei Alexandrescu wrote:
> On 2/28/11 6:03 PM, Jonathan M Davis wrote:
> > The more I think about this, the more I'm against the idea of named
> > arguments.
> 
> I think you have been blessed to work with only small, clean APIs.
> Certain domains definitely promote large argument lists. Though the
> designs could certainly be refactored to e.g. group parameters into
> separate objects, it's overkill to do that. I'm afraid sheer experience
> is showing that your counterarguments are not based.

Generally, the only kind of place that I've seen that sort of problem is with C. 
Other languages that I've used generally use objects heavily enough that you 
don't have that sort of problem.

- Jonathan M Davis


More information about the Digitalmars-d mailing list