<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>miura1729</author_name>
  <author_url>https://blog.hatena.ne.jp/miura1729/</author_url>
  <blog_title>miura1729の日記</blog_title>
  <blog_url>https://miura1729.hatenadiary.org/</blog_url>
  <categories>
  </categories>
  <description>関数の呼び出し情報を使って型推論をする機能を入れてみました。あまり、使いどころは無いような気がしますが(必要なら+ 0.0とか入れて型を指定すればいいから)、面白いかなと思います。 def fact(n) n end def llvmfib(n) fact(3.9) if n &lt; 2 then 1 else llvmfib(n - 1) + llvmfib(n - 2) end end 例えば、こんな感じのプログラムでfactは型が不明ですが、llvmfibで3.9を引数で呼び出しているので、factはDouble -&gt; Doubleと型推論できます。 define double @fact(…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmiura1729.hatenadiary.org%2Fentry%2F20081018%2F1224321895&quot; title=&quot; 関数間の型推論を作りました - miura1729の日記&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>2008-10-18 18:24:55</published>
  <title> 関数間の型推論を作りました</title>
  <type>rich</type>
  <url>https://miura1729.hatenadiary.org/entry/20081018/1224321895</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
