3 ms·
The fact that, in the official Rust Book, the author even don't know how to write Higher order function in Chapter 1 said something about Rust. Just write down
by revskill 3y ago
The fact that, in the official Rust Book, the author even don't know how to write Higher order function in Chapter 1 said something about Rust.
Just write down how to do good functional programming with currying, HOC right in chapter 1 and all is good. Don't treat reader as "zero-knowledge beginner".
- peterfirefly 3y agoWhy would you want currying? It is one of least useful/most dumb features of old-skool applicative languages. It is often combined with a really dumb "no parentheses" attitude to arguments. If you really need something akin to currying (which you rarely do), why not use a closure as a wrapper? // x and y are captured from the environment | a | func_that_takes_3_args(x, y, a)