Re:Things Rust shipped without
by jnordwick on Saturday July 04, 2015 @03:15AM
(#9829517)
compromise. Make return very short, like a unary colon ":".
Then "foo.map(|x| :x+1)" is nice. If that doesn't stand out enough for some people on a line of its own, make your editor render the unary colon line in a very bold color for you.
Then "foo.map(|x| :x+1)" is nice. If that doesn't stand out enough for some people on a line of its own, make your editor render the unary colon line in a very bold color for you.