今日はRubyの「StringとSymbolの違い」 を整理しました。 ミュータブル(変更可能) な文字列と、イミュータブル(変更不可) なシンボルのメモリ管理の違いを学びました。 Railsでハッシュのキーにシンボルを使う理由が分かりました。 1. 見た目の違いと定義 ...
Ruby is moving toward having literal strings frozen by default[1][2]. Currently passenger has many instances where it mutates a literal string. This will break in future version of ruby where literal ...
一部の結果でアクセス不可の可能性があるため、非表示になっています。
アクセス不可の結果を表示する