Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
sparsely
· 6y ago · 0 comments
I believe that Ada, or perhaps a specific subset with some extensions, achieves most of these goals. You can definitely restrict types to be a range or enumeration of e.g. ints, and they have some facility for contract based function interfaces.
Comments
[–]
MaxBarraclough
6y ago
Yes, this is a feature of standard Ada.
https://en.wikibooks.org/wiki/Ada_Programming/Type_System#Na...