TLDR Dev · MISCELLANEOUS

FROZEN STRING LITERALS: PAST, PRESENT, FUTURE?

byroot.github.io23 min read

Summary from the TLDR Dev newsletter

This article goes over the history, present state, and potential future of frozen string literals in Ruby. It explains how Ruby strings are mutable, unlike in many other languages, and the tradeoffs between mutable and immutable strings. A new approach is proposed using "chilled strings" to emit deprecation warnings.