3 ms·
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
by eru 2y ago
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.
- chuckadams 2y agoHaskell 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.
- eru 2y agoNice! I've only used linear types in Clean ages ago, but haven't checked them out in Haskell, yet.