News for hackers. Stuff that matters.
Re:The biggest threat to Rust's sustainability by jgilias on Friday March 19, 2021 @06:46AM (#26511878)
I do agree that Rust 'feels' more like C++ than Python or Java. But then, from my limited experience with dabbling into Haskell, to me it feels more like Haskell than C++. In Rust, from the language perspective, I have to deal with things like these:

- Doing Option<T> -> Option<U>

- At what point do I do Option<T> -> Result<T>

- Should I transpose Vec<Option<T>> to Option<Vec<T>> now or later?

- Often reaching for algebraic data types

- How to map over this to collect it into what I need

- Ah, it needs to implement Hash, Eq, PartialEq ... SomeTrait to make it work the way I want

- Pattern matching all over the place

All of which to me mentally feels more like something along the lines of F#, OCaml or Haskell than C++ that 'normal people write'.

There are no comments on this comment yet.