<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>syou6162</author_name>
  <author_url>https://blog.hatena.ne.jp/syou6162/</author_url>
  <blog_title>yasuhisa's blog</blog_title>
  <blog_url>https://www.yasuhisay.info/</blog_url>
  <categories>
    <anon>Ruby</anon>
  </categories>
  <description>rubyを書くときはmethod chainでつなげていくことが多いと思いますが、途中でnilが出てきたとき困ってしまいます。例えば str.split(&quot;/&quot;).last.split(&quot;.&quot;).last のようなコードがあったときにstrに空文字が入ると途中でnilが出てきて死にます。clojureだとnil safeなthreding macroというのが公式にあって、nilが途中できたら計算を途中で止めてnilを返させることができます。 some-&gt; - clojure.core | ClojureDocs - Community-Powered Clojure Documentatio…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fwww.yasuhisay.info%2Fentry%2F2016%2F02%2F18%2F210000&quot; title=&quot;nil safeなmethod chainをどう書くか - yasuhisa&amp;#39;s blog&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>http://ecx.images-amazon.com/images/I/51P6NdS4IGL.jpg</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2016-02-18 21:00:00</published>
  <title>nil safeなmethod chainをどう書くか</title>
  <type>rich</type>
  <url>https://www.yasuhisay.info/entry/2016/02/18/210000</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
