Changes between Version 8 and Version 9 of FixnumsCowan
 Timestamp:
 09/14/16 13:05:22 (8 months ago)
Legend:
 Unmodified
 Added
 Removed
 Modified

FixnumsCowan
v8 v9 14 14 == Rationale == 15 15 16 Fixnum arithmetic is already supported by many systems, mainly for efficiency. Standardizing fixnum arithmetic increases the portability of code that uses it. Standardizing the range of fixnums would make fixnum operations inefficient on some systems, which would defeat their purpose. Therefore, this SRFI specifies some of the semantics of fixnum , but makes the range implementationdependent.16 Fixnum arithmetic is already supported by many systems, mainly for efficiency. Standardizing fixnum arithmetic increases the portability of code that uses it. Standardizing the range of fixnums would make fixnum operations inefficient on some systems, which would defeat their purpose. Therefore, this SRFI specifies some of the semantics of fixnums, but makes the range implementationdependent. 17 17 18 18 Existing implementations employ different implementation strategies for fixnums: Some implement the model specified by R6RS (overflows cause exceptions), some implement modular arithmetic (overflows “wrap around”), and others do not handle arithmetic overflows at all. In programs that use fixnums instead of generic arithmetic, overflows are typically programming mistakes.