以åããå±±ã®ããã«ææ¡ããã£ã Hash ã®ã·ã§ã¼ããã³ãã RubyKaigi ã®ææ³æ¦ã§ matz ã説å¾ãã¦å ¥ã£ããããã ãã±ããï¼[Feature #14579] Hash value omission ã³ãããï¼https://github.com/ruby/ruby/commit/c60dbcd1c55cd77a24c41d5e1a9555622be8b2b8 ææ³æ¦ã®ãã°ï¼https://hackmd.io/Mmse5ybASq-6c2kQoJQdMQ ããã«ãã£ã¦ Ruby 3.1 㧠Hash ã以ä¸ã®ããã«æ¸ããã¨ãã§ãã¾ãã name = "homu" age = 14 # { name: name, age: age } ã®ã·ã³ã¿ãã¯ã¹ã·ã¥ã¬ã¼ { name:, age: } # => {:name=>"homu", :age=>14} # ä¸é¨ã ãå¤ãå²ãå½ã¦ã
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}