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

> This cannot be modeled effectively in a static system. You can use a sum type, but that's just a greenspunned ad hoc dynamic type.

This can easily be modeled in a static type system. All you really need is subtyping.



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

Search: