Hacker News new | ask | show | jobs
by laureny 4533 days ago
Value classes make tagged types obsolete:

http://docs.scala-lang.org/overviews/core/value-classes.html

1 comments

They still have uses for disambiguating implicits. There are at least four monoids for the Int: 0/+, 1/*, MinValue/Max, and MaxValue/Min. It is useful to tag them so one can specify which monoid one wants.