Re:Names are not type safety (2020)
by b_e_n_t_o_n on Tuesday August 05, 2025 @06:08AM
(#44796247)
I don't think I'm gonna find a library that supports my OneToFive type.
[ Parent
| on HN ]
Your type comes with its own library, and the compiler makes sure you're not misusing it by failing to consider a possible case.
If you need to use your OneToFive someplace that actually wants an integer, that happens at the boundary. Everything else is safer.