Feature #9042

Remove "f" suffix in favor of VM optimization of "literal".freeze

Added by Charles Nutter 6 months ago. Updated 5 months ago.

[ruby-core:57966]
Status:Closed
Priority:Normal
Assignee:-
Category:core
Target version:2.1.0

Description

The "f" suffix has been added to Ruby trunk to allow creating pre-frozen literal strings. However, #8992 provides a way the VM could simply optimize #freeze called on a literal string in the same way. If #8992 is accepted, the backward-incompatible "f" syntax should be removed.

Associated revisions

Revision 43634
Added by Nobuyoshi Nakada 5 months ago

parse.y: remove "f" suffix [Feature #9042]

revert r42847 "test_string.rb: add test string encoding"

revert r42846 "parse.y: freeze in advance to reduce objects"

revert r42843 "parse.y: deduplicate frozen string literals"

revert r42780 "test_string.rb: yet another test"

revert r42779 "parse.y: valid suffix word only"

revert r42778 "test_string.rb: remove duplicated code"

revert r42775 "parse.y: force_encoding"

This reverts commit 93ea04ecec7639ca8d0e58948e78461434782ecc.

revert r42773 "Add frozen string literals"

History

#1 Updated by Charles Nutter 6 months ago

  • Category set to core

#2 Updated by Nobuyoshi Nakada 5 months ago

  • Status changed from Open to Closed
  • % Done changed from 0 to 100

This issue was solved with changeset r43634.
Charles, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.


parse.y: remove "f" suffix [Feature #9042]

revert r42847 "test_string.rb: add test string encoding"

revert r42846 "parse.y: freeze in advance to reduce objects"

revert r42843 "parse.y: deduplicate frozen string literals"

revert r42780 "test_string.rb: yet another test"

revert r42779 "parse.y: valid suffix word only"

revert r42778 "test_string.rb: remove duplicated code"

revert r42775 "parse.y: force_encoding"

This reverts commit 93ea04ecec7639ca8d0e58948e78461434782ecc.

revert r42773 "Add frozen string literals"

Also available in: Atom PDF