Y
Hacker News
new
|
ask
|
show
|
jobs
by
Jtsummers
1743 days ago
You can with Ada. Though not many other languages.
1 comments
the_duke
1743 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.
link
A lot more awkward than dependent types, but no popular language has those.