[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-17 05:27:50 CET

Hi

On Nov 16, 2007 4:00 AM, Kouhei Sutou <kou@cozmixng.org> wrote:
> Hi,
>
> In <ae6cb1100711151052g46aa3495vac702993069ec70b@mail.gmail.com>
> "Re: [patch] Use hash for optional args with long argument list in Ruby bindings" on Thu, 15 Nov 2007 10:52:51 -0800,
> "Joe Swatosh" <joe.swatosh@gmail.com> wrote:
>
> > Now that I understand you were suggesting "required options" I'd like to
> > suggest that there are a couple renamings that could make things more clear.
> > And I think it would more difficult than necessary to maintain an
> > OPTIONAL_**_KEYS Array and a local default_options Hash. The patch below
>
> Using keys of default options is OK but I don't define
> default options as constant. I want to generate default
> options each time because we may change default options
> destructively by mistake.
>

If we freeze the constants, wouldn't we get TypeErrors if we were to
accidentally
try to modify them?

--
Joe
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sat Nov 17 05:28:00 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.