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.




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

Search: