by shigemk2

当面は技術的なことしか書かない

Scalaの型階層 メモ

http://www.scala-lang.org/old/sites/default/files/images/classhierarchy.img_assist_custom.png

The superclass of all classes scala.Any has two direct subclasses scala.AnyVal and scala.AnyRef representing two different class worlds: value classes and reference classes.

AnyからAnyValへ続くパターンと、AnyRefに続くパターンの二種類。

A Tour of Scala: Unified Types | The Scala Programming Language