<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>E_Mattsan</author_name>
  <author_url>https://blog.hatena.ne.jp/E_Mattsan/</author_url>
  <blog_title>エンジニアのソフトウェア的愛情</blog_title>
  <blog_url>https://blog.emattsan.org/</blog_url>
  <categories>
    <anon>C++</anon>
    <anon>ねた</anon>
  </categories>
  <description>C++のテンプレートで。 Haskellのばあい 基本に立ち返って、まずはHaskellのばあい。 Haskellは基本的に遅延評価なので、不適切な式が含まれていても評価されないのであれば全体としては正しく評価してくれます。 ここでinfinityを評価してしまうと無限再帰呼び出しになってしまいますが、if_に与えられるconditionがFalseであるかぎりinfinityは評価さません。結果としてif_は値を返すことができます。 if_ condition m n = if condition then m else n infinity = infinity + 1 main = pr…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog.emattsan.org%2Fentry%2F20140709%2F1404913456&quot; title=&quot; 遅延評価if - エンジニアのソフトウェア的愛情&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>2014-07-09 22:44:16</published>
  <title> 遅延評価if</title>
  <type>rich</type>
  <url>https://blog.emattsan.org/entry/20140709/1404913456</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
