3 ms·
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
by jnordwick 11y ago
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.
- eddyb 11y agoThat doesn't solve the fact that blocks and conditional control flow (if/else and match) are expressions and need a way to produce values.