Re:Unusual basis types in programming languages
by itishappy on Friday January 19, 2024 @01:35PM
(#39059240)
In the same vein, having a dedicated type for natural (or even Peano) numbers can be quite nice. I've seen some clever use-cases in Haskell and Rust such as statically enforcing bounds checks. Can't have a negative length list!
[ Parent
| on HN ]
There are no comments on this comment yet.