by shigemk2

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

型系エラーメッセージ

// error: integer number too large
// val i = 12345678901234567890
// type mismatch
// val b1: Byte = 128
val b2: Byte = 127
println(b2)

ByteとかShortとかはtype mismatchになるのに、Intはinteger number too largeなのね。

Programming Scala: Scalability = Functional Programming + Objects

Programming Scala: Scalability = Functional Programming + Objects