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

Indeed.

I like for example using enum types to ensure that what’s actually passed is the expected value even though fundamentally the semantics do not need to be much more complicated than integer values. There could be the same thing with a distinction between offset and indices as two different integer numerical types to avoid any ambiguity.



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

Search: