[#1026] Is this a bug? — Dave Thomas <Dave@...>

18 messages 2000/01/03

[#1084] Infinite loop — Dave Thomas <Dave@...>

17 messages 2000/01/11

[#1104] The value of while... — Dave Thomas <Dave@...>

24 messages 2000/01/11

[ruby-talk:01132] Re: The value of while...

From: David Suarez de Lis <excalibor@...>
Date: 2000-01-12 15:06:32 UTC
List: ruby-talk #1132
Hi!,

Matz-san said:
> In message "[ruby-talk:01124] Re: The value of while..."
>     on 00/01/12, Dave Thomas <Dave@thomases.com> writes:
> 
> |Thinking again about class definitions returning a value, I wonder how
> |many people would find the concept of Class and meta-classes more
> |obvious if the syntax were
> |
> |  Dave = Class.new {
> |         }
> 
> Same policy applies here.  
> 
> |  class Dave
> |  end
> 
> is more beautiful (from my view :-), and traditional than 
> 
> |  Dave = Class.new {
> |         }

Well, I find this one pretty elegant, though ;) And original :)

The 'end' one reminds me to Visualargh Basic too much (I know, I know, Eiffel also uses 'end', but then Meyer is a classicist ;)

not that I am suggesting a change (but we save 1 byte per class definition :) (and it's consistent with Procs... I love them :)

well, abayo,
d@
-------------------------------------------------------------
Mensaje enviado gracias al correo gratuito de Demasiado Corp.
[http://correo.demasiado.com]
-------------------------------------------------------------

			   

In This Thread

Prev Next