Discord is now Scala’s main chat platform. Please join us at https://discord.com/invite/scala
class
vs type
distinction in OO
Option[A]
has class Some
or None
All of this is simply to say that we must be working with two separate concepts here.
The runtime shape and properties of the values that end up flying around when a program actually runs. This we call class.
The compile-time, statically-discoverable shape and properties of the expressions that fly around when a program is written. This we call type.