[#237] object.c ruby.h (fwd) — Robert Skarwecki <skaav@...>

Hello everybody,

42 messages 2002/07/24
[#239] Re: [PATCH] object.c ruby.h (fwd) — GOTO Kentaro <gotoken@...> 2002/07/24

At Thu, 25 Jul 2002 00:02:28 +0900,

[#240] Re: [PATCH] object.c ruby.h (fwd) — Dave Thomas <Dave@...> 2002/07/24

GOTO Kentaro <gotoken@notwork.org> writes:

[#246] Re: [PATCH] object.c ruby.h (fwd) — GOTO Kentaro <gotoken@...> 2002/07/25

At Thu, 25 Jul 2002 05:05:46 +0900,

[#247] Re: [PATCH] object.c ruby.h (fwd) — Dave Thomas <Dave@...> 2002/07/25

GOTO Kentaro <gotoken@notwork.org> writes:

[#248] Re: [PATCH] object.c ruby.h (fwd) — nobu.nokada@... 2002/07/25

Hi,

[#249] Re: [PATCH] object.c ruby.h (fwd) — Dave Thomas <Dave@...> 2002/07/25

nobu.nokada@softhome.net writes:

[#250] Re: [PATCH] object.c ruby.h (fwd) — nobu.nokada@... 2002/07/25

Hi,

[#252] Re: [PATCH] object.c ruby.h (fwd) — GOTO Kentaro <gotoken@...> 2002/07/25

At Fri, 26 Jul 2002 03:11:02 +0900,

[#253] Re: [PATCH] object.c ruby.h (fwd) — Dave Thomas <Dave@...> 2002/07/25

GOTO Kentaro <gotoken@notwork.org> writes:

Re: [PATCH] object.c ruby.h (fwd)

From: Dave Thomas <Dave@...>
Date: 2002-07-26 15:31:36 UTC
List: ruby-core #263
Michal Rokos <m.rokos@sh.cvut.cz> writes:

> 	To get the same level of real-word-perception as SmallTalk has,
> 	it is needed to:
> 	(1)	* raise error if argument to RTEST isn't kind of Boolean
> 	(2)	* remove all #to_* and boolean (#&, #|) methods for nil.

Although this is a pure approach, I think it would make programming in
Ruby harder. Being able to say things like

   while line = gets
     ...
   end

is just too useful for the small tasks folks often use Ruby
for. Wrapping that up in a more theoretically sound

  while !(line = gets).nil?

loses a lot.

Now I know that folks would then say: but you shouldn't do
this. ARGF.each or whatever is more expressive and avoids the
problem. And I agree. But the reality is that the user community
appreciates the variety of styles supported by Ruby, and one of the
reasons people take to Ruby in the first place is the ability to write
familiar looking code.


Cheers


Dave

In This Thread