<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>gfx</author_name>
  <author_url>https://blog.hatena.ne.jp/gfx/</author_url>
  <blog_title>Islands in the byte stream (legacy)</blog_title>
  <blog_url>https://gfx.hatenadiary.org/</blog_url>
  <categories>
    <anon>Perl</anon>
  </categories>
  <description>インターフェイスベースの型制約を元に面白いことができないかと思い，Mouse 0.44にMouse::Util::TypeConstraints::duck_typeを加えた。もっとも，Mooseにはずいぶん前から実装されているのだが。duck_typeとは，オブジェクトが特定のメソッドを調べるかどうかをチェックする型制約である。 use Any::Moose; use Any::Moose '::Util::Type::Constraints'; has ostream =&gt; ( is =&gt; 'rw', isa =&gt; duck_type([qw(print)]), ); ... sub sa…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fgfx.hatenadiary.org%2Fentry%2F20091210%2F1260436683&quot; title=&quot;Mouse 0.44 released with duck_type - Islands in the byte stream (legacy)&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-12-10 18:18:03</published>
  <title>Mouse 0.44 released with duck_type</title>
  <type>rich</type>
  <url>https://gfx.hatenadiary.org/entry/20091210/1260436683</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
