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

What if toReadable also takes 3 args of the same type but different meaning?


You can create custom types to communicate semantics to the type checker. Whether that's always a good idea is arguable though, but the tools are there (e.g. there's a wide field between weak and strong typing, and an overly strong type checker can be quite a hassle to work with while an overly weak type checker isn't much better than duck typing).




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

Search: