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

> I kept waiting for more examples for why we need FP

Dependent types, allow a lot more type safety (ex. shader program type parametrized by description of its uniform variables, getting rid of `INVALID_OPERATION` on wrong uniform location/type).

> you can incorporate those features in imperative languages like Rust and Swift

Incorporating dependent types into imperative languages with unrestricted effects is hard (impossible?).



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

Search: