[r6rs-discuss] [Formal] Clean-up in the additional arithmetic libraries

From: Felix Klock <pfr6rs>
Date: Wed Nov 15 02:35:38 2006

On Nov 14, 2006, at 7:50 PM, Alan Watson wrote:

> Consistency and simplicity of naming is important, especially when
> dealing with libratries that introduce variants on a common operation.
>
> I propose the following renamings and additions to the arithmetic
> libraries defined in section 16. These have the global advantage of
> using exactly the same names for both generic and type-specific
> procedures representing similar mathematical operations.
>
> How then would one distinguish between different procedures with the
> same name? One would use the renaming or prefixing procedures
> allowed by
> the library system. For example, one would import the fixnum
> procedures
> with a prefix of "fixnum:". This would give completely consistent
> names;
> currently some of the current names are prefixed by "fixnum" and
> others
> by "fixnum-", and some have an appended "?".

-1

If I understand your idea correctly, after importing the (r6rs
arithmetic fixnum) library, (real? 2.3) would evaluate to #f.

That is not what I would call consistent.

(There may be some refinement of your idea that I support. But
exporting fixnum? with the name real? does not make sense to me.)

-Felix
Received on Wed Nov 15 2006 - 02:35:26 UTC

This archive was generated by hypermail 2.3.0 : Wed Oct 23 2024 - 09:15:00 UTC