Re: [Scheme-reports] Bitwise operations on bytes
Aubrey Jaffer 29 Mar 2012 17:55 UTC
| From: Alan Watson <alan@alan-watson.org>
| Date: Thu, 29 Mar 2012 10:39:39 -0600
|
| > We did strongly consider incorporating bitwise operations
| > as in (srfi 33) / (rnrs arithmetic bitwise), and decided to
| > leave it to the large language. There was no question of it
| > being controversial or of limited use, it's simply one place
| > we decided to draw the line between large and small.
|
| I'm sure you did consider those libraries. However, they specify
| bitwise operations on integers of somewhat uncertain range, which
| opens a can of worms.
See <http://srfi.schemers.org/srfi-60/srfi-60.html>. Bitwise
operations on integers (both positive and negative) are well defined
and implementable in pure R4RS using no more bits than the input
numbers.
_______________________________________________
Scheme-reports mailing list
Scheme-reports@scheme-reports.org
http://lists.scheme-reports.org/cgi-bin/mailman/listinfo/scheme-reports