[#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,
[#427] Re: New feature for Ruby?
— Clemens Hintze <c.hintze@...>
1999/07/02
On Fri, 02 Jul 1999, you wrote:
[#428] Re: New feature for Ruby?
— gotoken@... (GOTO Kentaro)
1999/07/03
Hi,
[#429] Re: New feature for Ruby?
— Clemens Hintze <c.hintze@...>
1999/07/03
On Sat, 03 Jul 1999, you wrote:
[#430] Re: New feature for Ruby?
— gotoken@... (GOTO Kentaro)
1999/07/05
Hi,
[#431] Re: New feature for Ruby?
— Clemens Hintze <c.hintze@...>
1999/07/07
On Mon, 05 Jul 1999, you wrote:
[#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:
[#452] Re: Now another totally different ;-)
— gotoken@... (GOTO Kentaro)
1999/07/11
Hi,
[#462] Re: Now another totally different ;-)
— matz@... (Yukihiro Matsumoto)
1999/07/12
Hello, there.
[#464] Re: Now another totally different ;-)
— Clemens Hintze <c.hintze@...>
1999/07/12
On Mon, 12 Jul 1999, you wrote:
[#467] Re: Now another totally different ;-)
— matz@... (Yukihiro Matsumoto)
1999/07/12
Hi,
[#468] Re: Now another totally different ;-)
— gotoken@... (GOTO Kentaro)
1999/07/12
In message "[ruby-talk:00467] Re: Now another totally different ;-)"
[#443] — Michael Hohn <hohn@...>
Hello,
26 messages
1999/07/09
[#444] interactive ruby, debugger
— gotoken@... (GOTO Kentaro)
1999/07/09
Hi Michael,
[#448] Re: interactive ruby, debugger
— "NAKAMURA, Hiroshi" <nakahiro@...>
1999/07/10
Hi,
[#450] Re: interactive ruby, debugger
— Clemens Hintze <c.hintze@...>
1999/07/10
On Sat, 10 Jul 1999, you wrote:
[#490] Some questions concerning GC in Ruby extensions — Clemens Hintze <c.hintze@...>
Hi matz,
6 messages
1999/07/14
[#501] Ruby 1.3.5 — Yukihiro Matsumoto <matz@...>
Ruby 1.3.5 is out, check out:
1 message
1999/07/15
[#519] CGI.rb — "Michael Neumann" <neumann@...>
Hi...
7 messages
1999/07/24
[#526] Another way for this? And a new proposal! — Clemens Hintze <c.hintze@...>
Hi,
6 messages
1999/07/25
[ruby-talk:00430] Re: New feature for Ruby?
From:
gotoken@... (GOTO Kentaro)
Date:
1999-07-05 00:35:40 UTC
List:
ruby-talk #430
Hi,
In message "[ruby-talk:00429] Re: New feature for Ruby?"
on 99/07/03, Clemens Hintze <c.hintze@gmx.net> writes:
>But I perhaps lack ability to write articles so that a magazin would
>publish it! But nevertheless, I will try it someday :-)
I long for your articles!
By the way, I also would like to translate Matz and his collaborator's
book about Ruby which will be published in near future in Japan. But I
need a collaborator who correct my Engrish if I'm permitted to
translate.
>But Ruby already have magical increment of Strings, means String#succ!
>And if I do a `"".succ' I will get an `"\377"'. As I didn't consider
>that behavior as the one one would expect, I have patched String#succ,
>so that it would raise an exception.
That maybe important. I think succ is allowed to be non one-to-one
mapping, such that, str1.succ == str2.succ for str1 != str2. But
either str.pred.succ == str or str.succ.pred == str should be held for
arbitrary String str, I think.
>ATTENTION PLEASE: If Interval would define Interval#===, it would have
>a slight other task than Range#===!
>
>Interval#=== should checks, whether a certain value would be contained
>by that interval or not. That means
>
> interval(0,100,2) === 2 # true
> interval(0,100,2) === 1 # false
>
>The second example would be false, as the interval is [0, 2, 4, ...,
>100] and there is no element 1.
For such objects, I feel a suitable name is `Sequence' rather than
Interval. The name Sequence itself means descrete series, i.e.,
enumerable and one dimensional. But Interval reminds me and
mathematicians so general region as it may be use to a continuum or a
higher dimensional structure. Other opinions?
>>However I feel that makes Interval to become closer to Range.
>
>You're right! But it is not my desire to make Interval as different as
>possible to Range. If we would obey that rule all the time, it would
>not be necessary to have Fixnum and Integer. Fixnum would enough,
>right?
Hummm, Fixnum is distinct from Integer in its functions, especially,
the spacial cost. I've not recognized yet such major difference
between Range and Interval. I feel some of problems or restrictions on
Range seems to able to be solve by extending Range. I'd like to listen
other persons' (including Matz's again) opinions.
>>Yes! I understand that. In this point of view, I want also
>>membership specified region class for non-enumerable objects. But it
>>will be defined in the project anyway. In the numerical scene such
>>ranges appear very often.
>
>Perhaps I have not grasp your point at whole. Would you be so kind to
>explain your last paragraph again?
Well, we numerical experimenters very often use regions on Float, Time
or some mathematical/physical quantiteis in order to define
domain/range of functions or data. And sometimes, we want to apply set
theoretical union, intersection or subtraction of them for
readability. Of cource, combinating of inequation-tests can be use to
do equvalent tasks but long conditions are too intensinal and blur
extensional meanings. For example
dom = interval(1.01, 2.43) - interval(1.981, 1.9842)
...
raise "domain error" unless x.belongs?(dom)
is easy to read.
-- gotoken