<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>noqisofon</author_name>
  <author_url>https://blog.hatena.ne.jp/noqisofon/</author_url>
  <blog_title>想像力の欠如は深刻な欠点の一つである。</blog_title>
  <blog_url>https://noqisofon.hatenablog.com/</blog_url>
  <categories>
    <anon>crystal</anon>
  </categories>
  <description>3 記事連続で Crystal。 #on の block の型が String -&gt; なんだけど、戻り値の型が不明？なので、Proc(A, B).new { |x| ... } という Proc の表記では書けないっぽい………。 こういう風に書きたいけど、エラーになる: proc = Proc(String, ).new { |x| hoge = x } # エラー！！ C 言語的に考えれば、Void 型にすれば、値を返さない Proc になるはずだが……: proc = Proc(String, Void).new { |x| hoge = x } # proc の型は String -&gt; …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fnoqisofon.hatenablog.com%2Fentry%2F2016%2F03%2F27%2F103505&quot; title=&quot; String -&amp;gt; は Proc(A, B).new では表記できない？ - 想像力の欠如は深刻な欠点の一つである。&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>2016-03-27 10:35:05</published>
  <title> String -&gt; は Proc(A, B).new では表記できない？</title>
  <type>rich</type>
  <url>https://noqisofon.hatenablog.com/entry/2016/03/27/103505</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
