<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>koic</author_name>
  <author_url>https://blog.hatena.ne.jp/koic/</author_url>
  <blog_title>koicの日記</blog_title>
  <blog_url>https://koic.hatenablog.com/</blog_url>
  <categories>
    <anon>ruby</anon>
  </categories>
  <description>先日、RuboCop の ruby-head CI が落ちていたので、bugs.ruby-lang.org にフィードバックしていたイシューが以下。 bugs.ruby-lang.org osyo さんがコメントで教えてくれた PR が以下で、each_cons と each_slice の戻り値が nil から self に変わっているというものだった。 github.com 以下は破壊的変更が起きる (単純化した) サンプルです。ブロックで条件によって break を使った戻り値を使うか、each_cons としての戻り値を使うか判定するようなロジックが遭遇したケースです。 Ruby 3.…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fkoic.hatenablog.com%2Fentry%2Fruby31-each-cons-and-each-slice&quot; title=&quot;Ruby 3.1 での each_cons と each_slice の (コーナーケース?) 非互換変更 - koicの日記&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2021-10-28 00:00:00</published>
  <title>Ruby 3.1 での each_cons と each_slice の (コーナーケース?) 非互換変更</title>
  <type>rich</type>
  <url>https://koic.hatenablog.com/entry/ruby31-each-cons-and-each-slice</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
