Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I don't think I'm gonna find a library that supports my OneToFive type.


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.




Consider applying for YC's Summer 2026 batch! Applications are open till May 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: