[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Rev-interfaces to support optional parameters

From: John Peacock <jpeacock_at_rowman.com>
Date: 2007-01-29 19:38:00 CET

Nik Clayton wrote:
> How controversial would it be to rev some API interfaces to better deal
> with the possibility of optional parameters?

I'd be inclined to not rev the API, since it will just produce code
churn with very little gain for consumers other than SWIG. Just make
the positional arguments in Perl take 'undef' to mean 'take default' (if
that isn't already the case).

I suspect that once you finish amending the Perl interface to take named
parameters, no one will want to use the positional parameters any
longer, other than existing code (like SVK) which would be broken by
reordering the parameters anyways.

My 2 cents...


John Peacock
Director of Information Research and Technology
Rowman & Littlefield Publishing Group
4501 Forbes Boulevard
Suite H
Lanham, MD  20706
301-459-3366 x.5010
fax 301-429-5748
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Mon Jan 29 19:38:13 2007

This is an archived mail posted to the Subversion Dev mailing list.