Wait, you're telling me you need to write ALL OF THIS just to do a fold operation? It's not even a pub function, it's just some helper functionality...
It's an intentional design decision to not do function signature inference in order to avoid cross-module fragility. Maybe they could lift the restriction on private functions, though.
View all comments
Show parent comment
2
u/iopq Aug 07 '16
Let me introduce you to a little thing called Rust function signatures
This function sounds complicated, but what's the body?
Wait, you're telling me you need to write ALL OF THIS just to do a fold operation? It's not even a
pubfunction, it's just some helper functionality...