Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Making Wrong Code Look Wrong (2005). Parent comment
In Scala you have value class, that get replaced by the underlying type during compilation so there is no overhead.
https://ivanyu.me/blog/2014/12/14/value-classes-in-scala/
It may sounds a hassle but you only have to handle it at the interfaces (for example for a web app in the controller and data layer), in the rest of the code you just manipulate your value like any other type.
There are no comments on this comment yet.
In Scala you have value class, that get replaced by the underlying type during compilation so there is no overhead.
https://ivanyu.me/blog/2014/12/14/value-classes-in-scala/
It may sounds a hassle but you only have to handle it at the interfaces (for example for a web app in the controller and data layer), in the rest of the code you just manipulate your value like any other type.