From: Furio Filoseta Date: 2001-02-19T21:38:43+09:00 Subject: [ruby-talk:11091] Re: Ruby Netiquitte This is a multi-part message in MIME format. ------=_NextPart_000_002D_01C09A50.6B99DA00 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable On Saturday 17 February 2001 22:27, jweirich@one.net wrote:=20 > >>>>> "Jim" =3D=3D jweirich writes:=20 >=20 > Jim> b[6] doesn't exist either. Yet b[6,2] returns an empty = string.=20 >=20 > Oops ... I meant "empty list". But of course you knew that :-) = Yes, but we are comparing apples and crates.=20 a[6,2] returns nil because a[6,2] is 'not an apple'.=20 b[6,2] returns an empty crate.=20 So...given my universally recognized twisted view of everthing, = this behavior=20 does make some sort of sense. ;-)=20 Regards,=20 Kent Starr=20 elderburn@mindspring.com=20 ------=_NextPart_000_002D_01C09A50.6B99DA00 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
On Saturday=20 17 February 2001 22:27, jweirich@one.net wrote:
>=20 >>>>> "Jim" =3D=3D jweirich  = <jweirich@one.net>=20 writes:
>
>     Jim> b[6] = doesn't=20 exist either.  Yet b[6,2] returns an empty string.
> =
>=20 Oops ... I meant "empty list".   But of course you knew = that :-)=20

Yes, but we are comparing apples and crates.
a[6,2] = returns=20 nil because a[6,2] is 'not an apple'.
b[6,2] returns an empty = crate.=20

So...given my universally recognized twisted view of = everthing,=20 this behavior
does make some sort of sense. ;-) =

Regards,=20

Kent Starr=20
elderburn@mindspring.com

<= /DIV> ------=_NextPart_000_002D_01C09A50.6B99DA00--