<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>zehnpaard</author_name>
  <author_url>https://blog.hatena.ne.jp/zehnpaard/</author_url>
  <blog_title>Arantium Maestum</blog_title>
  <blog_url>https://zehnpaard.hatenablog.com/</blog_url>
  <categories>
    <anon>OCaml</anon>
    <anon>型理論</anon>
    <anon>言語処理系</anon>
  </categories>
  <description>前回に続いてミュータブルな型変数に対する破壊的代入で実装する効率的な単相型推論について見ていく。今回はtypeof関数の内部で使われているmatch_fun_ty、そしてunify, occursinの実装について。 match_fun_ty 前回見たとおり、型推論・型検査を行うtypeof関数の「関数適用」ケースでmatch_fun_tyというヘルパ関数が使われている： let rec typeof env = function ... | EApp(func, arg) -&gt; let tfunc = typeof env func in let targ = typeof env arg …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fzehnpaard.hatenablog.com%2Fentry%2F2022%2F10%2F27%2F184301&quot; title=&quot;型推論を実装・改善していく６　ミュータブルな型変数を使った単相型推論（後編） - Arantium Maestum&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>2022-10-27 18:43:01</published>
  <title>型推論を実装・改善していく６　ミュータブルな型変数を使った単相型推論（後編）</title>
  <type>rich</type>
  <url>https://zehnpaard.hatenablog.com/entry/2022/10/27/184301</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
