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

*To*: William D Clinger <will@xxxxxxxxxxx>*Subject*: Re: Questions about srfi-77 Generic Arithmetic*From*: Bradley Lucier <lucier@xxxxxxxxxxxxxxx>*Date*: Sat, 18 Feb 2006 19:59:43 -0600*Cc*: Bradley Lucier <lucier@xxxxxxxxxxxxxxx>, srfi-77@xxxxxxxxxxxxxxxxx*Delivered-to*: srfi-77@xxxxxxxxxxxxxxxxx*In-reply-to*: <AGD.20060218163551415@xxxxxxxxxxxxxxxxxxxxxxxxxxxxx>*References*: <AGD.20060218163551415@xxxxxxxxxxxxxxxxxxxxxxxxxxxxx>

On Feb 18, 2006, at 11:22 AM, William D Clinger wrote:

8. Integer Divison. (a) I think it is a really bad design to have the basic operation of div+mod change when the second argument changes sign.I don't have much problem with that. These mathematical operations aren't defined at zero, so they have to compare against zero anyway. To quote Egner et al, "the sign of the modulus y determines which system of representatives of the residue class ring Z/yZ is being chosen, either non-negative (y > 0), symmetric around zero (y < 0), or the integers (y = 0)." Using the sign of y is ad hoc, but it's an ad hoc choice anyway.

For now, let me just point out http://groups.google.com/group/comp.lang.scheme/msg/32949cdfdda958f8?

Brad

- Prev by Date:
**Re: Questions about srfi-77 Generic Arithmetic** - Next by Date:
**Re: Questions about srfi-77 Generic Arithmetic** - Previous by thread:
**Re: Questions about srfi-77 Generic Arithmetic** - Next by thread:
**Re: Questions about srfi-77 Generic Arithmetic** - Index(es):