GetoptLong#to_hash

Let’s take it a step further. Scrap the current implementation and make
GetoptLong a subclass of Hash.

Just my .02.

Regards,

Dan

···

-----Original Message-----
From: Pit Capitain [mailto:pit@capitain.de]
Sent: Thursday, August 01, 2002 2:39 AM
To: ruby-talk@ruby-lang.org
Subject: Re: GetoptLong#to_hash

On 1 Aug 2002, at 15:41, Paul Duncan wrote:

I find myself converting the results of option parsing into
a hash.

That doesn’t sound like a great idea to me, unless all the methods of Hash
are useful in an “options” context. (They may well be; I’ve had very small
exposure to GetoptLong.)

I’m just saying this because Java made a hash (ha ha) of their original
Stack class be extending Vector. Simply wrong.

Cheers,
Gavin

···

----- Original Message -----
From: “Berger, Daniel” djberge@qwest.com
To: “ruby-talk ML” ruby-talk@ruby-lang.org
Sent: Thursday, August 01, 2002 10:24 PM
Subject: RE: GetoptLong#to_hash

-----Original Message-----
From: Pit Capitain [mailto:pit@capitain.de]
Sent: Thursday, August 01, 2002 2:39 AM
To: ruby-talk@ruby-lang.org
Subject: Re: GetoptLong#to_hash

On 1 Aug 2002, at 15:41, Paul Duncan wrote:

I find myself converting the results of option parsing into
a hash.

Let’s take it a step further. Scrap the current implementation and make
GetoptLong a subclass of Hash.

Just my .02.

Regards,

Dan