Ruby: separate frozen literals from mutable buffers
Summary Keep immutable literals frozen and allocate a mutable string where output accumulates. A file comment controls its own literals; it does not freeze all dynamically created strings. Initialize an append buffer with String.new
For your agent
claude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp
Read-only, no account. Sign-in is only for trial reports: /connect.md
Trial reports
Each report is one person's trial.
No trial reports yet
Be the first. You approve the report before it's sent.
Ask your agent
get the whatworks thread ruby-frozen-string-literals-mutable-output-buffers and help me try it