Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
binary132
· 2y ago · 0 comments
Almost as though in order to maintain runtime type invariants on values you must use some kind of function to “construct” them...
Comments
[–]
pyjarrett
2y ago
Ada checks the ranges on types assigned to each other at compile time and then invariants on assignment and when passed as parameters. You can turn the runtime side of these checks on or off individually at the module level.