Slide 9
Slide 9 text
Ruby 3.0 と超絶技巧プログラミング
Ruby 3.0 and transcendental programming
• Immutable string literal [Feature #11473]
– Ruby 3.0では文字列リテラルを破壊的に変更できなくなる
In Ruby 3.0, all string literals are frozen by default
– 導入理由:高速化などなど (for performance improvement)
• 個人的にはネガティブ (I’m against this change)
– Ruby には何事も「動的」であってほしい
I hope Ruby is always dynamic, as far as possible
9
""<<32
s="foobar"
s.gsub!("ob", "OB")