[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: The new class fraction
From: |
Matthias Koeppe |
Subject: |
Re: The new class fraction |
Date: |
Wed, 26 Nov 2003 11:38:48 +0100 |
User-agent: |
Gnus/5.090024 (Oort Gnus v0.24) Emacs/21.3.50 (usg-unix-v) |
Mikael Djurfeldt <address@hidden> writes:
> Mikael Djurfeldt <address@hidden> writes:
>
>> 2003-11-18 Marius Vollmer <address@hidden>
>>
>> * objects.c (scm_class_fraction): New.
>>
>> It is great to have rational numbers in Guile's number tower.
>>
>> However, why have you chosen the type name "fraction" rather than
>> "rational" as is the name used in for example Common Lisp?
>>
>> I suggest quickly changing the name to <rational> before <fraction>
>> sticks.
>
> Hmm... on second consideration. Probably we should keep <fraction> as
> the concrete class representing fractions and introduce the abstract
> class <rational>, with subclasses <integer> and <fraction> so that
> membership of class <rational> is equivalent to the result of a call
> to the predicate rational?.
Actually, the name of the concrete class representing fractions is
called RATIO in Common Lisp. It is a subclass of RATIONAL.
--
Matthias Koeppe -- http://www.math.uni-magdeburg.de/~mkoeppe