<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>osiire</author_name>
  <author_url>https://blog.hatena.ne.jp/osiire/</author_url>
  <blog_title>osiire’s blog</blog_title>
  <blog_url>https://osiire.hatenablog.com/</blog_url>
  <categories>
  </categories>
  <description>私はOCaml, haXe, Scalaを勉強してきましたが、この三つの言語では構造的部分型がサポートされています。せっかくだから三言語の構造的部分型の特徴を比較してみることにしました。 OCamlは全て型推論してくれる代わりに部分型への変換は明示的。部分型変換ができるバリアントがある。 haXeは全て型推論してくれて、かつ部分型への変換も暗黙的にできるけど、場合によってはコンパイルがとまらない Scalaは型推論は(完璧には)してくれないけど、部分型への変換は暗黙的 全部違うのが興味深いですね。ところで、それぞれの型の表現も比べてみましょう。 (* OCaml版 *) # type t = …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fosiire.hatenablog.com%2Fentry%2F20091105&quot; title=&quot;構造的部分型の比較 - osiire’s blog&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>2009-11-05 00:00:00</published>
  <title>構造的部分型の比較</title>
  <type>rich</type>
  <url>https://osiire.hatenablog.com/entry/20091105</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
