Repository navigation

#

newtype

Some more derive(Trait) options

Rust
1972
8 天前

NewTypes for Scala with no runtime overhead

Scala
543
4 年前

Unboxed (multi-nested-)tagged + unboxed newtypes. Better and much friendlier alternative to AnyVals.

Scala
99
3 年前

Nearly zero runtime object allocation powered by scalameta. Value class and Unboxed Tagged Type generation at compile-time.

Scala
80
8 年前

derive newtype for diesel traits

Rust
53
2 个月前

Helpers for easily using failure::Error and others as return types in main() while still giving human-readable error messages.

Rust
45
4 年前
Scala
16
1 天前

Sensible, performant primitives for writing semantic TypeScript code

TypeScript
14
9 个月前

newtype and refinement (refined) type for Scala 3

Scala
13
1 天前

Opaque type encoding for convenient new types, and boilerplate minimization of integration with 3rd party libraries like circe, http4s, doobie, skunk, etc.

Scala
7
3 年前

Beautiful way to create new types for your Python classes!

Python
6
6 个月前

Newtype, Generic Interface Deriving

Idris
6
3 年前

Newtype macros for commonly reused types in Rust.

Rust
4
9 个月前

a type with 1 variant but convenient

Elm
3
3 年前

Reference implementation of https://github.com/gothinkster/realworld using typelevel stack, refined and newtype

Scala
2
5 年前