News for hackers. Stuff that matters.
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.
Re:Names are not type safety (2020) by the_af on Tuesday August 05, 2025 @09:08AM (#44797552)
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.