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

The advantage to Haskell's type constructor approach, though, is extensibility. Making nullability a language keyword like `const` requires a change to the fundamental grammar of the language. In Haskell, `Maybe a` is just another data type, defined entirely in Haskell itself. This opens the door to allowing users of the language to create arbitrary type system constraints without having to modify the compiler to support them.


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

Search: