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

Re: [patch] Use hash for optional args with long argument list in Ruby bindings

From: Joe Swatosh <joe.swatosh_at_gmail.com>
Date: 2007-11-21 20:09:15 CET

On 11/20/07, Kouhei Sutou <kou@cozmixng.org> wrote:
> Hi,
>

>
> All of XXX2 API in the Ruby bindings. Users of the Ruby
> bindings will not be confused if all of XXX2 API accepts
> only a Hash.
>
> And if we use a Hash argument for all of XXX2 API, XXX2 API
> will be more stable. If we use positional and optional
> arguments for XXX2 API, we need to keep positional argument
> as optional in the API's argument list when the feature
> Subversion API changes a required argument to a optional
> argument that is not optional argument in the current API.
>
>

Ah. You are thinking in terms of a required argument becoming
optional. I was thinking in terms of a new required argument.
Won't we still have to rev the API if there is a new required argument?
(Granted that doesn't seem like it should happen very often).

--
Joe
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Wed Nov 21 20:09:40 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.