{"id":121861,"date":"2024-05-18T10:56:58","date_gmt":"2024-05-18T01:56:58","guid":{"rendered":"https:\/\/softantenna.com\/blog\/?p=121861"},"modified":"2024-05-18T10:56:58","modified_gmt":"2024-05-18T01:56:58","slug":"ruby-3-4-0-preview1","status":"publish","type":"post","link":"https:\/\/softantenna.com\/blog\/ruby-3-4-0-preview1\/","title":{"rendered":"Ruby 3.4.0 preview1\u304c\u30ea\u30ea\u30fc\u30b9 - \u8a00\u8a9e\u6a5f\u80fd\u306e\u6539\u826f\u3084\u30b3\u30a2\u30af\u30e9\u30b9\u306e\u66f4\u65b0\u306a\u3069"},"content":{"rendered":"<p><img decoding=\"async\" style=\"display:block; margin-left:auto; margin-right:auto;\" src=\"https:\/\/softantenna.com\/blog\/wp-content\/uploads\/2024\/05\/s_20240518_104310.jpg\" alt=\"S 20240518 104310\" title=\"s_20240518_104310.jpg\" border=\"0\" width=\"1049\" height=\"656\" \/><\/p>\n<p>Ruby\u958b\u767a\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306f5\u670816\u65e5\u3001Ruby 3.4\u30b7\u30ea\u30fc\u30ba\u306e\u6700\u65b0\u30d7\u30ec\u30d3\u30e5\u30fc\u7248\u300cRuby 3.4.0 preview1 \u300d\u3092\u30ea\u30ea\u30fc\u30b9\u3057\u307e\u3057\u305f(<a href=\"https:\/\/www.ruby-lang.org\/en\/news\/2024\/05\/16\/ruby-3-4-0-preview1-released\/\">ruby-lang.org<\/a>)\u3002\u73fe\u5728\u516c\u5f0f\u30b5\u30a4\u30c8\u3088\u308a\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>Ruby 3.4.0 preview1\u3067\u306f\u8a00\u8a9e\u6a5f\u80fd\u304c\u5909\u66f4\u3055\u308c\u3001frozen_string_literal\u30b3\u30e1\u30f3\u30c8\u304c\u306a\u3044\u30d5\u30a1\u30a4\u30eb\u5185\u306e\u6587\u5b57\u5217\u30ea\u30c6\u30e9\u30eb\u304c\u3001frozen\u3055\u308c\u305f\u304b\u306e\u3088\u3046\u306b\u52d5\u4f5c\u3059\u308b\u3088\u3046\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002\u3053\u308c\u3089\u306e\u6587\u5b57\u5217\u304c\u5909\u66f4\u3055\u308c\u305f\u5834\u5408\u3001\u975e\u63a8\u5968\u306e\u8b66\u544a\u304c\u767a\u305b\u3089\u308c\u307e\u3059\u3002<\/p>\n<p>\u30d6\u30ed\u30c3\u30af\u30d1\u30e9\u30e1\u30fc\u30bf\u30fc\u3092\u53c2\u7167\u3059\u308b\u305f\u3081\u306e<code>it<\/code>\u306e\u8ffd\u52a0\u3084\u3001\u30e1\u30bd\u30c3\u30c9\u547c\u3073\u51fa\u3057\u6642\u306enil\u306e\u30ad\u30fc\u30ef\u30fc\u30c9\u30b9\u30d7\u30e9\u30c3\u30c8\u306e\u30b5\u30dd\u30fc\u30c8\u3082\u884c\u308f\u308c\u3066\u3044\u307e\u3059\u3002<code>**nil<\/code>\u306f<code>**{}<\/code>\u3068\u540c\u69d8\u306b\u6271\u308f\u308c\u3001\u30ad\u30fc\u30ef\u30fc\u30c9\u306f\u6e21\u3055\u308c\u305a\u3001\u5909\u63db\u30e1\u30bd\u30c3\u30c9\u3082\u547c\u3073\u51fa\u3055\u308c\u307e\u305b\u3093\u3002<\/p>\n<p>Exception\u3084Range\u3068\u3044\u3063\u305f\u30b3\u30a2\u30af\u30e9\u30b9\u306e\u5909\u66f4\u3084\u3001\u30a8\u30e9\u30fc\u30e1\u30c3\u30bb\u30fc\u30b8\u3001\u30d0\u30c3\u30af\u30c8\u30ec\u30fc\u30b9\u8868\u793a\u306e\u5909\u66f4\u3082\u884c\u308f\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<pre>\nOld:\ntest.rb:1:in `foo': undefined method `time' for an instance of Integer\n        from test.rb:2:in `<main>'\n\nNew:\ntest.rb:1:in 'Object#foo': undefined method 'time' for an instance of Integer\n        from test.rb:2:in `<main>'\n<\/pre>\n<p>\u305d\u306e\u4ed6C API\u306e\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u3084\u3001\u5b9f\u88c5\u306e\u6539\u5584\u306a\u3069\u7d30\u304b\u306a\u5909\u66f4\u304c\u884c\u308f\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u5909\u66f4\u70b9\u306e\u8a73\u7d30\u306f<a href=\"https:\/\/github.com\/ruby\/ruby\/blob\/v3_4_0_preview1\/NEWS.md\">NEWS<\/a>\u3084<a href=\"https:\/\/github.com\/ruby\/ruby\/compare\/v3_3_0...v3_4_0_preview1\">\u30b3\u30df\u30c3\u30c8\u30ed\u30b0<\/a>\u3067\u78ba\u8a8d\u53ef\u80fd\u3067\u3059<\/p>\n<table>\n<tr>\n<th rowspan='4' style='white-space: nowrap;'><img decoding=\"async\" style=\"max-width: 52px; height: auto;\" src=\"https:\/\/softantenna.com\/uploads\/software\/1964\/s_icon(2).png\" \/><\/th>\n<th style='white-space: nowrap;'>\u30bf\u30a4\u30c8\u30eb<\/th>\n<td>Ruby<\/td>\n<\/tr>\n<tr>\n<th style='white-space: nowrap;'>\u516c\u5f0f\u30b5\u30a4\u30c8<\/th>\n<td><a href=\"http:\/\/www.ruby-lang.org\/ja\/\">http:\/\/www.ruby-lang.org\/ja\/<\/a><\/td>\n<\/tr>\n<tr>\n<th style='white-space: nowrap;'>\u30bd\u30d5\u30c8\u30a2\u30f3\u30c6\u30ca<\/th>\n<td><a href=\"https:\/\/softantenna.com\/softwares\/1964-ruby\">https:\/\/softantenna.com\/softwares\/1964-ruby<\/a><\/td>\n<\/tr>\n<tr>\n<th style='white-space: nowrap;'>\u8aac\u660e<\/th>\n<td>\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u6307\u5411\u30b9\u30af\u30ea\u30d7\u30c8\u8a00\u8a9e\u3002<\/td>\n<\/tr>\n<\/table>\n","protected":false},"excerpt":{"rendered":"<p>Ruby\u958b\u767a\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306f5\u670816\u65e5\u3001Ruby 3.4\u30b7\u30ea\u30fc\u30ba\u306e\u6700\u65b0\u30d7\u30ec\u30d3\u30e5\u30fc\u7248\u300cRuby 3.4.0 preview1 \u300d\u3092\u30ea\u30ea\u30fc\u30b9\u3057\u307e\u3057\u305f(ruby-lang.org)\u3002\u73fe\u5728\u516c\u5f0f\u30b5\u30a4\u30c8\u3088\u308a\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3059 [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":121862,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"swell_btn_cv_data":"","footnotes":""},"categories":[75],"tags":[154],"class_list":["post-121861","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-software","tag-ruby"],"_links":{"self":[{"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/posts\/121861","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/comments?post=121861"}],"version-history":[{"count":0,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/posts\/121861\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/media\/121862"}],"wp:attachment":[{"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/media?parent=121861"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/categories?post=121861"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/tags?post=121861"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}