|
|
|
|
|
by lisper
1275 days ago
|
|
> Strings aren't immutable in Lisp Neither are lists. Only the empty list is immutable, and likewise empty strings. It really is a completely equivalent situation. There is no principled reason that the empty list should be unique and the empty string not. |
|
The empty string is mutable. Even the literal one is potentially mutable: you can try it at your own risk. You ca make a mutable empty string with (make-string 0) or by mutating a non-empty string.
Any mutable string can be mutated to make it empty:
Since strings aren't linked structures with a terminator, the comparison is moot.