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

You can have two arguments that are semantically as distinct and important as quantity and price and be both integers, and if you swap them is a big issue anyway. And you would be forced, if you like this kind of programming, to create distinct types anyway. But I never trust this kind of "toy" defensive programming. The value comes from testing very well the code, from a rigorous quality focus.


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

Search: