[#1551] Hashes as keys — "Nathaniel Talbott" <nathaniel@...>

I was just playing around with Hash#hash and discovered that you can't use a

13 messages 2003/09/23

Re: |rcr|.xv Index Variables ( *_with_index )

From: "daz" <dooby@...10.karoo.co.uk>
Date: 2003-09-02 15:58:54 UTC
List: ruby-core #1497
----- Original Message ----- 
From: "Gavin Sinclair" <gsinclair@soyabean.com.au>
To: "daz" <ruby-core@ruby-lang.org>
Sent: Tuesday, September 02, 2003 4:11 PM
Subject: Re: |rcr|.xv Index Variables ( *_with_index )


> On Wednesday, September 3, 2003, 12:48:23 AM, daz wrote:
> 
> 
> > Hello 'core,
> 
> > My first post here, so I'll try not to be too controversial.
> > It might be too long for busy people.
> 
> > =begin
> 
> >   [RCR] proposal - optional block index variable
> >   ==============================================
> 
> 
> Hi Dave,
> 
> I like the idea, and read nearly every word (skipping some
> implementation details) of your long post.  I have some concern about
> the special treatment of the index variable in String#scan that you
> propose.  A nice rule doesn't look so nice when there are exceptions.
> 
> Cheers,
> Gavin
> 

So true.  Scan was an obvious example to show that the rule
could be bent if concensus were to go that way.
string.c is a one-line change and an afterthought rather than
in the design.  It wouldn't bother me you decided to boot it.

Any change has got to be right, if there is a right.

Hope you don't mind if I post a link:
http://www.d10.karoo.net/ruby/xv/xv.patch
because I sent in MIME format (the gotcha for list newbies
coming from Usenet).
(I don't know if my ISP allows FTP access, sorry.)


Thanks, Gavin.


daz



In This Thread