by tatterdemalion · 9y ago · 0 comments
The reason this is very good is closures, which have the same return semantics as functions, are often a single expression, and are most useful to fit on one line. `.filter(|x| x.foo_bar() < some_other.foo_bar())`. Removing the return statement helps here.
Its a behavior shared with many (but not all) languages that make heavy use of anonymous functions.