[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Nitpick with FLOOR etc.



 | From: Aubrey Jaffer <agj@xxxxxxxxxxxx>
 | Date: Thu, 21 Jul 2005 13:35:25 -0400 (EDT)
 | 
 |  | Date: Tue, 19 Jul 2005 15:30:02 -0500
 |  | From: Alan Watson <a.watson@xxxxxxxxxxxxxxxx>
 |  | 
 |  | >Also, is the prefixed `x' for exact; wouldn't `e' be more
 |  | >Schemely?
 |  | 
 |  | Wouldn't exact-foo and inexact-foo be more in keeping with other
 |  | R5RS procedure names?  After all, we swallowed
 |  | call-with-current-continuation.
 | 
 | Yes.
 | 
 | Looking for simple "convenience function" precedents in R5RS, the only
 | ones which come to mind are NEWLINE and REMAINDER.

Scheme has lots more convenience functions: CAAR, CADR, CDAR, ...
So convenience functions are Schemely.

What should these new functions be called?

 exact-round	 exact-ceiling	 exact-floor	 exact-truncate

 round->exact	 ceiling->exact	 floor->exact	 truncate->exact