Re:Ruby Symbols
by masklinn on Tuesday November 18, 2025 @10:39AM
(#45967670)
> 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.
Re:Ruby Symbols
by User23 on Friday November 21, 2025 @02:05AM
(#46001957)
I 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.
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.