3 ms·
> That’s really not true for Lisp. It's completely true of lisp. Lisp strings are generally mutable (although literal strings may be interned and non-mutable,
by masklinn 11mo ago
> That’s really not true for Lisp.
It's completely true of lisp. Lisp strings are generally mutable (although literal strings may be interned and non-mutable, or even worse mutation of literal strings may be UB). Same for Smalltalk.
- kazinator 11mo agoIn a Lisp with mutable strings, like Common Lisp, those strings which are symbol names are still mutable.
- User23 11mo agoI meant more that symbols are a data structure with function and value slots. Last I knew strings, interned (which is also a Lisp reference) or not don't have that.