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

The string "3.99" always comes back as a string, but when you need do anything at all to it, it resolves down to the same problem.


Ideally, one should make illegal state unrepresentable. The problem with a string is there is no guarantee it represents a money amount.




Consider applying for YC's Fall 2026 batch! Applications are open till July 27.

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

Search: