<?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>Ref型とそれに関係した式の処理を追加する。 この記事で（HM型推論なしで）追加したものと同じ： zehnpaard.hatenablog.com ref型を作るためのオペレータref（ここら辺OCamlだと型とオペレータの名前が被ったりしてややこしい）、ref型からデータを取り出すderef、そしてref型に破壊的代入をするassignの三つの式を用意する。 実はRef型はLet多相との相性が悪く、型安全性を保つためにValue Restrictionという特殊な制約と処理を追加する必要がある。その話は次回に持ち越し。 今回の（Value Restrictionなしなので型安全ではない）コー…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fzehnpaard.hatenablog.com%2Fentry%2F2022%2F11%2F12%2F162240&quot; title=&quot;Hindley Milner型推論に機能を追加していく９ Refの追加（前編） - 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-11-12 16:22:40</published>
  <title>Hindley Milner型推論に機能を追加していく９ Refの追加（前編）</title>
  <type>rich</type>
  <url>https://zehnpaard.hatenablog.com/entry/2022/11/12/162240</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
