guile-user
[Top][All Lists]
Advanced

[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/



reply via email to

[Prev in Thread] Current Thread [Next in Thread]