[#407] New feature for Ruby? — Clemens.Hintze@...

Hi all,

27 messages 1999/07/01
[#413] Re: New feature for Ruby? — matz@... (Yukihiro Matsumoto) 1999/07/01

Hi Clemens,

[#416] Re: New feature for Ruby? — Clemens Hintze <c.hintze@...> 1999/07/01

On Thu, 01 Jul 1999, Yukihiro Matsumoto wrote:

[#418] Re: New feature for Ruby? — gotoken@... (GOTO Kentaro) 1999/07/01

Hi

[#426] Re: New feature for Ruby? — gotoken@... (GOTO Kentaro) 1999/07/02

Hi,

[#440] Now another totally different ;-) — Clemens Hintze <c.hintze@...>

Hi,

21 messages 1999/07/09
[#441] Re: Now another totally different ;-) — matz@... (Yukihiro Matsumoto) 1999/07/09

Hi,

[#442] Re: Now another totally different ;-) — Clemens Hintze <c.hintze@...> 1999/07/09

On Fri, 09 Jul 1999, you wrote:

[#443] — Michael Hohn <hohn@...>

Hello,

26 messages 1999/07/09
[#444] interactive ruby, debugger — gotoken@... (GOTO Kentaro) 1999/07/09

Hi Michael,

[ruby-talk:00462] Re: Now another totally different ;-)

From: matz@... (Yukihiro Matsumoto)
Date: 1999-07-12 02:44:25 UTC
List: ruby-talk #462
Hello, there.

In message "[ruby-talk:00442] Re: Now another totally different ;-)"
    on 99/07/09, Clemens Hintze <c.hintze@gmx.net> writes:

|But I have another opinion! May I explain my reasons?

Sure.  In summary, I have to admit I treat Enumerable as ordered
sequence for some methods, e.g. index, sort, etc.  So I can agree with
adding a number indexing method to Enumerable.  But not [], because it
is used by Hash in different meaning.  I want methods sharing same
name also share same conceptual meaning, at least among standard class
library.

|3. I have not thought very deeply, but I would think, that every class
|   which provides an `each' method, would define a certain kind of
|   sequence then! I don't believe that there would be a class, which
|   would deliver different sequences during two successive calls of
|   e.g. Enumeration#collect. That means:
|	c = <any class import Enumeration>::new
|	# ... fill c
|        a1 = c.collect{|e| e}
|	a2 = c.collect{|e| e}
|	a1 == a2

File, for example.

|That could remain so. If appearing in conditional expressions, do it
|like now (complex operation; statement). If it appears in non-conditional
|expression, perform a method call (simple operation)!

Possible.  I'll consider.
                                                matz.

In This Thread