4 ms·
Rust looks very complicated to me because there are "lifetimes" and you need to think where to put those single quotes properly. Not a language for a beginner.
by codedokode 10y ago
Rust looks very complicated to me because there are "lifetimes" and you need to think where to put those single quotes properly. Not a language for a beginner.
Haskell doesn't support OOP if I remember correctly. And it is complicated too.
- steveklabnik 10y agoDue to lifetime elision, you rarely need to explicitly write lifetimes. I participated in the last Ludum Dare game competition, my game never used an explicit lifetime. That said, it is true that Rust has tricky parts. The domain is inherently complex.
- wyager 10y agoI never said it was for a beginner, just that it was well designed. Lifetimes are no more complicated than stuff you regularly run into in C++, though. Python is a great beginner-friendly language, but that doesn't mean it's well-designed in other respects or appropriate for large software projects. It wouldn't really make sense for Haskell to "support OOP" in the usual since. The OOP paradigm is mostly useful when you have mutability. Another way of looking at it is that you don't need OOP in Haskell because it exposes better ways of interacting with data that aren't present in most OO languages, like ADTs and Typeclasses.