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

Bindings question: do keyword args make us name-sensitive?

From: Karl Fogel <kfogel_at_red-bean.com>
Date: 2007-09-11 20:29:10 CEST

"David Glasser" <glasser@davidglasser.net> writes:
> On 9/1/07, kfogel@tigris.org <kfogel@tigris.org> wrote:
>> Author: kfogel
>> Date: Sat Sep 1 14:27:45 2007
>> New Revision: 26419
>>
>> Log:
>> * subversion/include/svn_wc.h
>> (...many places...): Change 'depth' parameter to 'levels_to_lock',
>> to avoid confusion with the 'svn_depth_t' sense of "depth".
>>
>> Everywhere: Adjust comments and variable / static method names accordingly.
>
> A little voice in the back of my head tells me that it's not OK to
> change parameter names in public APIs, because in some bindings you
> can use the parameter name as a keyword-style arg in calls. Am I just
> making that up?

Holy cow. I never thought of that.

I've changed the subject line of this mail to catch the eyes of
bindings maintainers. I sure hope we can change parameter names in
the C API... but if we can't, we can't.

If this is an issue only for a few bindings, one possibility is that
there might be some manual adjustment they could set somewhere, to
force the arg to use the old name for compatibility. (?)

-Karl

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Tue Sep 11 20:25:46 2007

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

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.