Hacker News new | past | comments | ask | show | jobs | submit login

Well, at some points it becomes even more complicated than just a spectrum.

Your types in different languages just track different things.

Eg Haskell's types (normally) don't track lifetimes nor ownership, but Rust does that. In contrast, Haskell likes to track whether side-effects like IO can occur at all, while Rust is happy to just let you eg open a file almost anywhere.




Haskell has linear types now, so there's your lifetime and ownership, though thankfully they're optional... wrangling linear types makes Rust look friendly and lenient.


Nice! I've only used linear types in Clean ages ago, but haven't checked them out in Haskell, yet.




Consider applying for YC's W25 batch! Applications are open till Nov 12.

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

Search: