<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>kmizushima</author_name>
  <author_url>https://blog.hatena.ne.jp/kmizushima/</author_url>
  <blog_title>kmizuの日記</blog_title>
  <blog_url>https://kmizu.hatenablog.com/</blog_url>
  <categories>
    <anon>Onion</anon>
  </categories>
  <description>Onionの仕様についてつらつらと考えていたら、自動ダウンキャスト以上になんかよろしくなさそうな箇所に気付いてしまった。というか、もっと早くに気付いとけよという代物だけど。Onionは静的型付け言語で、ローカル変数も(他の静的型付け言語同様に)静的に型付けされるのだが、代入式の左辺に現れるローカル変数が、その時点において宣言されていなければ、右辺の型から左辺のローカル変数の型を決定(あえて推論とは言わない。なんというか、推論してるというイメージではないので)する方式を取っている。たとえば、 x = 100;というコードがあって、この時点でxが宣言されていなかった場合、100というリテラルをin…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fkmizu.hatenablog.com%2Fentry%2F20080808%2F1218161880&quot; title=&quot;宣言と初期化と代入と - kmizuの日記&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-08 11:18:00</published>
  <title>宣言と初期化と代入と</title>
  <type>rich</type>
  <url>https://kmizu.hatenablog.com/entry/20080808/1218161880</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
