News for hackers. Stuff that matters.
Re:Destroy All Ifs – A Perspective from Functional Programming by DasIch on Saturday July 16, 2016 @09:32PM (#12108637)
The method whose to_string method you want to reference isn't in scope. You need a function that calls the method on the argument it's called with.

Why add a feature for this - worse syntax, if you can just use an anonymous function?

Rust is already not the simplest of languages, adding further syntax and features of questionable benefit won't make the language any simpler or easier to understand.

Re:Destroy All Ifs – A Perspective from Functional Programming by MichaelGG on Saturday July 16, 2016 @11:18PM (#12108885)
Because repeated "|x| x" is a common noise pattern.