3 ms·
To be fair, you don't need to declare the types of your lambdas in Rust, either.
by dllthomas 4y ago
To be fair, you don't need to declare the types of your lambdas in Rust, either.
- pornel 4y agoYou can't even name their actual types, but you need to use generics that fully specify their arguments, return types, mutability and ownership.
- marcosdumay 4y agoRust lambdas are mostly equivalent to the stuff you don't name in Haskell. (But well, you can certainly name them, as I've done that; I don't remember if you need to declare their type; and it is almost never useful.)
- noloblo 4y agodo you mean lambdas in Haskell or monads? :P
- marcosdumay 4y agoOn the parenthesis I mean lambdas in Rust. My comment turned out to be completely unclear.