3 ms·
You can with Ada. Though not many other languages.
by Jtsummers 5y ago
You can with Ada. Though not many other languages.
- the_duke 5y agoYou 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.