On Fri, Nov 8, 2019 at 5:06 PM Christopher Lemmer Webber < cweb...@dustycloud.org> wrote:
> Huh... somehow I had thought that I had heard that Racket has mutable > strings by default. It cropped up on my TODO list because of that. I > wonder what gave me that impression? > Racket strings are annoyingly mutable, enough so that there are many reasonable definitions of "default" for which the statement "Racket has mutable strings by default" would be true. For example: > (immutable? (string-append "")) #f String literals are an exception to the general rule, though there is some precedent for that exception: IIRC mutating a string literal in C is undefined behavior. This is a bit of a pet peeve of mine: https://github.com/racket/rhombus-brainstorming/issues/22 -Philip -- You received this message because you are subscribed to the Google Groups "Racket Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to racket-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/racket-users/CAH3z3gYy5akbv6SgR82RcF7Xhu0pJ-T21maT%2BphsSHk_8ghymw%40mail.gmail.com.