Comment Comment by wickedshimmy Value classes serve this purpose in Scala: `case class Id(id: Long) extends AnyVal` will have long-typed values at runtime (*mostly). parent wickedshimmy 10 years ago