<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>furuya02</author_name>
  <author_url>https://blog.hatena.ne.jp/furuya02/</author_url>
  <blog_title>SIN@SAPPOROWORKSの覚書</blog_title>
  <blog_url>https://furuya02.hatenablog.com/</blog_url>
  <categories>
    <anon>Swift</anon>
  </categories>
  <description>deferdeferは、Swift 2.0 で新たに追加された構文です。 The Swift Programming Language: Statements deferの動作deferを使用すると、スコープを抜ける際に実行する処理を記述することができます。 超簡単に例を示せば、次のようになります。 func f(){ defer{ print(&quot;2&quot;) } print(&quot;1&quot;) } // print &quot;1&quot; // print &quot;2&quot; deferを複数定義した場合L.I.F.O.で処理されます。 func f(){ defer{ print(“1”) } defer{ print(“2”) }…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ffuruya02.hatenablog.com%2Fentry%2F2015%2F08%2F23%2F055535&quot; title=&quot;Swift 2.0 で追加された defer について - SIN@SAPPOROWORKSの覚書&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://cdn-ak.f.st-hatena.com/images/fotolife/f/furuya02/20150823/20150823052955.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2015-08-23 05:55:35</published>
  <title>Swift 2.0 で追加された defer について</title>
  <type>rich</type>
  <url>https://furuya02.hatenablog.com/entry/2015/08/23/055535</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
