NewTypes for Scala with no runtime overhead
-
Updated
Feb 10, 2022 - Scala
NewTypes for Scala with no runtime overhead
Unboxed (multi-nested-)tagged + unboxed newtypes. Better and much friendlier alternative to AnyVals.
Nearly zero runtime object allocation powered by scalameta. Value class and Unboxed Tagged Type generation at compile-time.
A few extra tools
newtype and refinement (refined) type for Scala 3
Opaque type encoding for convenient new types, and boilerplate minimization of integration with 3rd party libraries like circe, http4s, doobie, skunk, etc.
Experiments with Spotify API
Introduction into fs2, newtype and refined types.
Encry blockchain observer
To associate your repository with the newtype topic, visit your repo's landing page and select "manage topics."