Y
Hacker News
new
|
ask
|
show
|
jobs
by
the_duke
1745 days ago
You can do it in most languages by just using a wrapper type with fallible constructors.
A lot more awkward than dependent types, but no popular language has those.