ruby-core@ruby-lang.org archive (unofficial mirror)
 help / color / mirror / Atom feed
From: "matz (Yukihiro Matsumoto) via ruby-core" <ruby-core@ml.ruby-lang.org>
To: ruby-core@ml.ruby-lang.org
Cc: "matz (Yukihiro Matsumoto)" <noreply@ruby-lang.org>
Subject: [ruby-core:117579] [Ruby master Feature#20350] Return chilled string from Symbol#to_s
Date: Wed, 17 Apr 2024 22:44:15 +0000 (UTC)	[thread overview]
Message-ID: <redmine.journal-107979.20240417224415.11019@ruby-lang.org> (raw)
In-Reply-To: redmine.issue-20350.20240319210642.11019@ruby-lang.org

Issue #20350 has been updated by matz (Yukihiro Matsumoto).


I am in favor of experimenting. I am in favor of moving to immutable strings in the future if there are no significant incompatibility issues.

Matz.

----------------------------------------
Feature #20350: Return chilled string from Symbol#to_s
https://bugs.ruby-lang.org/issues/20350#change-107979

* Author: Dan0042 (Daniel DeLorme)
* Status: Open
----------------------------------------
During Ruby 2.7 development there was an attempt to return a frozen string from Symbol#to_s (#16150#note-22)

This had to be rolled back due to incompatibility, but now we have chilled strings (#20205)

Symbol#to_s can safely return a chilled string, giving developers time to fix warnings before switching to a frozen string.




-- 
https://bugs.ruby-lang.org/
 ______________________________________________
 ruby-core mailing list -- ruby-core@ml.ruby-lang.org
 To unsubscribe send an email to ruby-core-leave@ml.ruby-lang.org
 ruby-core info -- https://ml.ruby-lang.org/mailman3/postorius/lists/ruby-core.ml.ruby-lang.org/

      parent reply	other threads:[~2024-04-17 22:44 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-03-19 21:06 [ruby-core:117240] [Ruby master Feature#20350] Return chilled string from Symbol#to_s Dan0042 (Daniel DeLorme) via ruby-core
2024-03-20  8:58 ` [ruby-core:117249] " byroot (Jean Boussier) via ruby-core
2024-03-20 10:52 ` [ruby-core:117255] " Eregon (Benoit Daloze) via ruby-core
2024-04-03 10:45 ` [ruby-core:117430] " Eregon (Benoit Daloze) via ruby-core
2024-04-16  6:30 ` [ruby-core:117524] " ko1 (Koichi Sasada) via ruby-core
2024-04-16  6:41 ` [ruby-core:117526] " byroot (Jean Boussier) via ruby-core
2024-04-17 22:44 ` matz (Yukihiro Matsumoto) via ruby-core [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-list from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.ruby-lang.org/en/community/mailing-lists/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=redmine.journal-107979.20240417224415.11019@ruby-lang.org \
    --to=ruby-core@ruby-lang.org \
    --cc=noreply@ruby-lang.org \
    --cc=ruby-core@ml.ruby-lang.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).