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
Opaque type encoding for convenient new types, and boilerplate minimization of integration with 3rd party libraries like circe, http4s, doobie, skunk, etc.
newtype and refinement (refined) type for Scala 3
Introduction into fs2, newtype and refined types.
Experiments with Spotify API
Encry blockchain observer
Add a description, image, and links to the newtype topic page so that developers can more easily learn about it.
To associate your repository with the newtype topic, visit your repo's landing page and select "manage topics."