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

Isn't that essentially what floats already are? A sum type of numbers, infinities, and NaN(s).


Yes and no. I think the OP is looking for a strongly typed language where you can’t do any operation on that sum type, forcing you to check results after every operation.




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

Search: