Y
Hacker News
new
|
ask
|
show
|
jobs
by
tejasv
2200 days ago
As other replies to this comment describe, we make heavy use of opaque types where runtime enforcement of safety is need. Some examples: PositiveFloat, PositiveDecimal, NonEmptyMap, NonEmptySet, NonEmptyList, KeyedSet.