[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Namestring&pathstring returning shared structure
CLU solved this problem by making STRING a different type than ARRAY of
CHARACTER, and by making STRINGs immutable. We found having immutable STRINGs
to be extremely useful: one can pass a string to a procedure or return it from
a procedure without worrying that someone might destructively modify it! This
idea was such a win that a later revision of CLU had both immutable and
mutable arrays and immutable and mutable records.
Something to think about for Common Lisp 2000...