<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>shigemk2</author_name>
  <author_url>https://blog.hatena.ne.jp/shigemk2/</author_url>
  <blog_title>by shigemk2</blog_title>
  <blog_url>https://www.shigemk2.com/</blog_url>
  <categories>
    <anon>Scala</anon>
  </categories>
  <description>Scalaは、Javaと同様の消去モデル(erasure model)のジェネリックプログラミングを使っており、実行時に型引数の情報を管理しない。 これは型消去と呼ばれ、コップ本の270-272あたりに書いてある。配列だけが型消去の例外と言われるが、具体的な回避方法はよくわからない。すくなくともこのパターンにおいては。 val a = Some(List(1, 2, 3)) val b = Some(&quot;hoge&quot;) def printmatch[A](a: Option[A]) = a match { // warning: non-variable type argument List[In…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fwww.shigemk2.com%2Fentry%2Funchecked_since_it_is_eliminated_by_erasure&quot; title=&quot;unchecked since it is eliminated by erasure - by shigemk2&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>http://ecx.images-amazon.com/images/I/415CsfYp64L.jpg</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2015-10-19 23:50:37</published>
  <title>unchecked since it is eliminated by erasure</title>
  <type>rich</type>
  <url>https://www.shigemk2.com/entry/unchecked_since_it_is_eliminated_by_erasure</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
