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

Re: [Scheme-reports] fresh empty strings

Oh dear, I seem to be trolling...

On Mon 23 Jan 2012 21:16, Ray Dillinger <bear@x> writes:

> On 01/23/2012 07:03 AM, Andy Wingo wrote:
>> strings of one character *cannot* be immediates.
> That's just not true.

  (eq? (string #\a) (string #\a)) => ?

If they were immediates, #t.  If they were not immediates, #f.

> You don't have to heap-allocate strings until can no longer prove that
> you have only one reference to the string.

Granted, but this is a very special case.


Scheme-reports mailing list