ruby.social is one of the many independent Mastodon servers you can use to participate in the fediverse.
If you are interested in the Ruby programming language, come join us! Tell us about yourself when signing up. If you just want to join Mastodon, another server will be a better place for you.

Administered by:

Server stats:

1.1K
active users

Jean Boussier

Some significant change has landed in Ruby 3.4-dev.

String literals will now act as if they were frozen in files without a `frozen_string_literal` magic comment.

If they are mutated they'll emit a deprecation warning rather than an error.

This opens the door to make string literals frozen by default in the future.

If you maintain a gem, please test it with ruby-head and with `Warning[:deprecated] = true`

github.com/ruby/ruby/commit/12

GitHubImplement chilled strings · ruby/ruby@12be40a[Feature #20205] As a path toward enabling frozen string literals by default in the future, this commit introduce "chilled strings". From a user perspective chilled strings pretend to be...

@byroot I'm so glad this was done. Adding that magic comment to every file is so... inelegant.

@byroot thanks for moving this forward.