{"id":75076,"date":"2019-11-24T09:50:09","date_gmt":"2019-11-24T00:50:09","guid":{"rendered":"https:\/\/www.softantenna.com\/wp\/?p=75076"},"modified":"2019-11-24T09:50:09","modified_gmt":"2019-11-24T00:50:09","slug":"ruby-2-7-0-preview3","status":"publish","type":"post","link":"https:\/\/softantenna.com\/blog\/ruby-2-7-0-preview3\/","title":{"rendered":"Ruby 2.7.0-preview3\u304c\u30ea\u30ea\u30fc\u30b9 - \u5e74\u672b\u306e\u516c\u958b\u306b\u3080\u3051\u305f3\u756a\u76ee\u306e\u30d7\u30ec\u30d3\u30e5\u30fc\u7248"},"content":{"rendered":"<p><img decoding=\"async\" style=\"display:block; margin-left:auto; margin-right:auto;\" src=\"https:\/\/softantenna.com\/blog\/wp-content\/uploads\/2019\/11\/s_20191124_94331.jpg\" alt=\"S 20191124 94331\" title=\"s_20191124_94331.jpg\" border=\"0\" width=\"938\" height=\"622\" \/><\/p>\n<p>Ruby\u958b\u767a\u30c1\u30fc\u30e0\u306f11\u670823\u65e5\u3001Ruby 2.7\u30b7\u30ea\u30fc\u30ba\u306e3\u756a\u76ee\u306e\u30d7\u30ec\u30d3\u30e5\u30fc\u7248\u3068\u306a\u308b\u300cRuby 2.7.0-preview3\u300d\u3092\u30ea\u30ea\u30fc\u30b9\u3057\u307e\u3057\u305f(<a href=\"https:\/\/www.ruby-lang.org\/ja\/news\/2019\/11\/23\/ruby-2-7-0-preview3-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>\u30d7\u30ec\u30d3\u30e5\u30fc\u7248\u306f\u5e74\u672b\u306e\u6b63\u5f0f\u30ea\u30ea\u30fc\u30b9\u306b\u5411\u3051\u3001\u65b0\u6a5f\u80fd\u306e\u30c6\u30b9\u30c8\u3084\u30d5\u30a3\u30fc\u30c9\u30d0\u30c3\u30af\u3092\u96c6\u3081\u308b\u305f\u3081\u306b\u63d0\u4f9b\u3055\u308c\u308b\u3082\u306e\u3067\u3001\u591a\u304f\u306e\u65b0\u3057\u3044\u6a5f\u80fd\u3084\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u306e\u6539\u5584\u304c\u542b\u307e\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>Ruby 2.7\u3067\u306f\u3001\u65ad\u7247\u5316\u3057\u305f\u30e1\u30e2\u30ea\u3092\u30c7\u30d5\u30e9\u30b0\u3059\u308bCompaction GC\u306e\u5c0e\u5165\u3084\u3001\u95a2\u6570\u578b\u8a00\u8a9e\u3067\u5e83\u304f\u4f7f\u308f\u308c\u3066\u3044\u308b\u30d1\u30bf\u30fc\u30f3\u30de\u30c3\u30c1\u3068\u3044\u3046\u6a5f\u80fd\u306e\u5b9f\u9a13\u7684\u306a\u5c0e\u5165\u304c\u884c\u308f\u308c\u307e\u3059\u3002<\/p>\n<pre>case JSON.parse('{...}', symbolize_names: true)\nin {name: \"Alice\", children: [{name: \"Bob\", age: age}]}\n  p age\n  ...\nend<\/pre>\n<p>\u305d\u306e\u4ed6\u3001REPL\u306e\u6539\u826f\u3084\u3001\u30ad\u30fc\u30ef\u30fc\u30c9\u5f15\u6570\u306e\u901a\u5e38\u306e\u5f15\u6570\u304b\u3089\u306e\u5206\u96e2\u3001\u30c7\u30d5\u30a9\u30eb\u30c8\u306e\u30d6\u30ed\u30c3\u30af\u306e\u4eee\u5f15\u6570\u3068\u3057\u3066\u306e\u756a\u53f7\u6307\u5b9a\u30d1\u30e9\u30e1\u30fc\u30bf\u306e\u8a66\u9a13\u7684\u5c0e\u5165\u3001\u958b\u59cb\u5024\u7701\u7565\u7bc4\u56f2\u5f0f\u306e\u8a66\u9a13\u7684\u5c0e\u5165\u3001\u5404\u8981\u7d20\u306e\u51fa\u73fe\u56de\u6570\u3092\u30ab\u30a6\u30f3\u30c8\u3059\u308bEnumerable#tally\u306e\u8ffd\u52a0\u3001\u30ec\u30b7\u30fc\u30d0\u3092self\u3068\u3057\u3066private\u30e1\u30bd\u30c3\u30c9\u3092\u547c\u3073\u51fa\u3059\u3053\u3068\u3092\u8a31\u5bb9\u3059\u308b\u5909\u66f4\u3001Enumerator::Lazy#eager\u306e\u8ffd\u52a0\u3001JIT\u306e\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u306e\u6539\u826f\u306a\u3069\u3001\u3055\u307e\u3056\u307e\u306a\u65b0\u6a5f\u80fd\u3084\u6539\u826f\u304c\u884c\u308f\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>preview3\u3067\u306e\u5909\u66f4\u70b9\u306e\u8a73\u7d30\u306f<a href=\"https:\/\/github.com\/ruby\/ruby\/blob\/v2_7_0_preview3\/NEWS\">NEWS<\/a>\u3084<a href=\"https:\/\/github.com\/ruby\/ruby\/compare\/v2_6_0...v2_7_0_preview3\">\u30b3\u30df\u30c3\u30c8\u30ed\u30b0<\/a>\u3067\u78ba\u8a8d\u53ef\u80fd\u3067\u3059\u3002<\/p>\n<table>\n<tr>\n<th rowspan='4' style='white-space: nowrap;'><img decoding=\"async\" style=\"max-width: 52px; height: auto;\" src=\"\/assets\/pc-301b359275e3cfd18baf480ee6dd6d484a27fdc417431ff7dd5cd26d895260b0.png\" alt=\"Pc\" \/><\/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\u30c1\u30fc\u30e0\u306f11\u670823\u65e5\u3001Ruby 2.7\u30b7\u30ea\u30fc\u30ba\u306e3\u756a\u76ee\u306e\u30d7\u30ec\u30d3\u30e5\u30fc\u7248\u3068\u306a\u308b\u300cRuby 2.7.0-preview3\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 [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":75077,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"swell_btn_cv_data":"","footnotes":""},"categories":[75],"tags":[154],"class_list":["post-75076","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\/75076","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=75076"}],"version-history":[{"count":0,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/posts\/75076\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/media\/75077"}],"wp:attachment":[{"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/media?parent=75076"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/categories?post=75076"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/tags?post=75076"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}