<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>m2ym</author_name>
  <author_url>https://blog.hatena.ne.jp/m2ym/</author_url>
  <blog_title>Functional Emacser</blog_title>
  <blog_url>https://m2ym.hatenadiary.org/</blog_url>
  <categories>
  </categories>
  <description>もはや型推論と呼べないことは承知ですが、あえてメモしておきます。主に補完目的の話です。Rubyなどの動的言語ではevalやsendを使うことで、簡単に型推論できない状況を作り出すことができます。そのような状況では当然、精度の良い補完を提供できません。そういう場合の解決策として、変数名やメソッド名から適切な型をヒューリスティックに推測してくれると良いかもしれません。例えば、以下のようになります。 fileという名前はStringかFileのオブジェクトだろう gsubというメソッドが呼ばれているオブジェクトはStringだろう mapというメソッドが呼ばれているオブジェクトはEnumerable…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fm2ym.hatenadiary.org%2Fentry%2F20090928%2F1254161592&quot; title=&quot;ヒューリスティックな型推論 - Functional Emacser&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-09-28 03:13:12</published>
  <title>ヒューリスティックな型推論</title>
  <type>rich</type>
  <url>https://m2ym.hatenadiary.org/entry/20090928/1254161592</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
