[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Questions about floating numbers, rethink and bug report
From: |
Chris Cramer |
Subject: |
Re: Questions about floating numbers, rethink and bug report |
Date: |
Thu, 11 Oct 2001 00:22:10 -0500 |
User-agent: |
Mutt/1.2.5i |
On Wed, Oct 10, 2001 at 09:41:53AM -0700, Per Bothner wrote:
> In Scheme you can do:
> "blah" ;; constant
> or:
> (string #\b #\l #\a #\h) ;; writable
> or:
> (copy-string "blah") ;; writable
>
> Similarly, for vectors:
> #(3 4 5) ;; constant
> vs:
> (vector 3 4 5) ;; writable
While I concede that the above is the correct way according to R5RS, I
prefer the incorrect way, if for no other reason than clarity (e.g. using
copy-string seems a little too much; it implies copying even when that
isn't really necessary).
If anyone does bother implementing immutable vectors/strings in Guile,
I hope they also add an option to turn it off.
--
C. Ray C. aka Christopher Cramer
address@hidden
http://www.pyro.net/~crayc/
- Re: Uniform vectors: was Questions about floating numbers, (continued)
- Re: Uniform vectors: was Questions about floating numbers, Martin Grabmueller, 2001/10/10
- Re: Questions about floating numbers, rethink and bug report, Neil Jerram, 2001/10/14
- Re: Questions about floating numbers, rethink and bug report, Dirk Herrmann, 2001/10/15
- Re: Questions about floating numbers, rethink and bug report, Neil Jerram, 2001/10/16
- Re: Questions about floating numbers, rethink and bug report, Dirk Herrmann, 2001/10/16
- Re: Questions about floating numbers, rethink and bug report, Neil Jerram, 2001/10/20
- Re: Questions about floating numbers, rethink and bug report, Chris Cramer, 2001/10/10
- Re: Questions about floating numbers, rethink and bug report, Per Bothner, 2001/10/10
- Re: Questions about floating numbers, rethink and bug report, Keith Wright, 2001/10/10
- Re: Questions about floating numbers, rethink and bug report, Dirk Herrmann, 2001/10/18
- Re: Questions about floating numbers, rethink and bug report,
Chris Cramer <=
- Re: Questions about floating numbers, rethink and bug report, Keith Wright, 2001/10/11
- Re: Questions about floating numbers, rethink and bug report, Chris Cramer, 2001/10/11