Hacker News new | ask | show | jobs
by noneeeed 1534 days ago
It's optional. By default strings are mutable, but you can freeze them individually, and you can set a directive that makes all string literals as immutable on a file-by-file basis.