News for hackers. Stuff that matters.
Re:Total Functional Programming (2004) [pdf] by trealira on Thursday March 07, 2024 @11:52AM (#39631251)
It seems like it would be more practical to create non-zero integer/other number types, and only those can be used as denominators. But it would also be nice to not have to make a custom subtype every time you needed something with a specific property.
Re:Total Functional Programming (2004) [pdf] by munchler on Thursday March 07, 2024 @11:55AM (#39631273)
Agreed. I think this is where dependent types become useful, but that is a whole can of worms.