<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>mzp</author_name>
  <author_url>https://blog.hatena.ne.jp/mzp/</author_url>
  <blog_title>みずぴー日記</blog_title>
  <blog_url>https://mzp.hatenadiary.org/</blog_url>
  <categories>
    <anon>OCaml</anon>
    <anon>HappyOCaml</anon>
    <anon>メモ</anon>
  </categories>
  <description>モジュールAの中でレコードを宣言する。 module A = struct type t = {a:string; b:string} end 各フィールド名はモジュールに属するので、このレコードを作るには次のようにしないといけない。 let f () = { A.a=&quot;foo&quot;; A.b=&quot;bar&quot;; } でも、全部のフィールド名にAを前置する必要はなくて、ひとつだけで十分らしい。 let f () = { A.a=&quot;foo&quot;; b=&quot;bar&quot;; } これで、pa_recordsがなくても平気だね。</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmzp.hatenadiary.org%2Fentry%2F20080811%2Focaml&quot; title=&quot;レコードの名前空間 - みずぴー日記&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-08-11 00:00:00</published>
  <title>レコードの名前空間</title>
  <type>rich</type>
  <url>https://mzp.hatenadiary.org/entry/20080811/ocaml</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
