logoalt Hacker News

account42 • yesterday at 2:59 PM • 0 replies • view on HN

There is no builtin integer type that guarantees x > 0. I agree that adding such a type (and more general, range guarantees at the type system level) would be very useful.