Project

General

Profile

Actions

Feature #20350

closed

Return chilled string from Symbol#to_s

Added by Dan0042 (Daniel DeLorme) 9 months ago. Updated about 1 month ago.

Status:
Closed
Assignee:
-
Target version:
-
[ruby-core:117240]

Description

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.


Files

Screenshot 2024-11-06 at 14.00.47.png (118 KB) Screenshot 2024-11-06 at 14.00.47.png jhawthorn (John Hawthorn), 11/06/2024 10:02 PM
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0Like1Like0Like0Like0