2 ms·
> Rust has almost-as-good ADTs, but no higher order functions. it seems to me Rust has HOF, do you mean they are not as nice as Haskells' ? Why?
by riffraff 10y ago
> Rust has almost-as-good ADTs, but no higher order functions.
it seems to me Rust has HOF, do you mean they are not as nice as Haskells' ? Why?
- wyager 10y agoCorrect. True functional-style HOFs require passing around arbitrarily-sized heap closures, which doesn't work with rust's memory model. Rust lets you Box closures, but it's very inconvenient compared to treating them as first-class values, so I didn't count it.