<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>saneyuki_s</author_name>
  <author_url>https://blog.hatena.ne.jp/saneyuki_s/</author_url>
  <blog_title>saneyuki_s log</blog_title>
  <blog_url>https://saneyukis.hatenablog.com/</blog_url>
  <categories>
    <anon>ECMAScript</anon>
  </categories>
  <description>ES6から使えるようになるdestructuring assignmentを使って、タプル的に返して受け取れば、複数の値を楽に受け取れるので、エラーハンドリング的なものが楽にできるようになりますよね！という話です。先日書いたライブラリで解決・緩和しようとしていた問題に対する別のアプローチ。 今更言うまでもない、おそらく常識的なテクニックの話なんですが、みんなES6の話をしているのに、こういう使い方の話をロクにしていないので「こういう話しようぜ！」と喧嘩を売る意味で書きました。 let fn = function () { return [ true, // 関数が正常処理できたか or 値の有…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fsaneyukis.hatenablog.com%2Fentry%2F2015%2F03%2F22%2F184823&quot; title=&quot;Option/Maybeとかで解決していることを、さながらgolangのようにES6のdestructuring assignmentで解決する - saneyuki_s log&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>2015-03-22 18:48:23</published>
  <title>Option/Maybeとかで解決していることを、さながらgolangのようにES6のdestructuring assignmentで解決する</title>
  <type>rich</type>
  <url>https://saneyukis.hatenablog.com/entry/2015/03/22/184823</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
