[#4766] Wiki — "Glen Stampoultzis" <trinexus@...>

21 messages 2000/09/04
[#4768] RE: Wiki — "NAKAMURA, Hiroshi" <nahi@...> 2000/09/04

Hi, Glen,

[#4783] Re: Wiki — Masatoshi SEKI <m_seki@...> 2000/09/04

[#4785] Re: Wiki — "NAKAMURA, Hiroshi" <nakahiro@...> 2000/09/05

Howdy,

[#4883] Re-binding a block — Dave Thomas <Dave@...>

16 messages 2000/09/12

[#4930] Perl 6 rumblings -- RFC 225 (v1) Data: Superpositions — Conrad Schneiker <schneik@...>

Hi,

11 messages 2000/09/15

[#4936] Ruby Book Eng. translation editor's questions — Jon Babcock <jon@...>

20 messages 2000/09/16

[#5045] Proposal: Add constants to Math — Robert Feldt <feldt@...>

15 messages 2000/09/21

[#5077] Crazy idea? infix method calls — hal9000@...

This is a generalization of the "in" operator idea which I

17 messages 2000/09/22

[#5157] Compile Problem with 1.6.1 — Scott Billings <aerogems@...>

When I try to compile Ruby 1.6.1, I get the following error:

15 messages 2000/09/27

[ruby-talk:5118] Re: Types and ===

From: "Hal E. Fulton" <hal9000@...>
Date: 2000-09-26 00:55:14 UTC
List: ruby-talk #5118
----- Original Message ----- 
From: Yasushi Shoji <yashi@yashi.com>
To: ruby-talk ML <ruby-talk@netlab.co.jp>
Sent: Monday, September 25, 2000 5:23 PM
Subject: [ruby-talk:5117] Re: Types and ===

> def classify4(arg)
>   case arg
>     when String
>       print "  arg is a string\n"
>     when Array
>       print "  arg is an array\n"
>     when Hash
>       print "  arg is a hash\n"
>     else
>       print "  arg is unknown\n"
>   end
> end

Ahhhh. I now perceive the Ruby Way.

So I should not have been finding the type at all, 
but letting the language do the work for me.

Still, it bothers me a little that x==y does not always
imply x===y. But I will just have to get used to that...

Actually I have trouble remembering what === means --
whether to say x === y or y === x, which are of course
not the same.

Thanks much,
Hal



In This Thread