|
|
|
|
|
by comex
4379 days ago
|
|
FWIW, I am a big fan of easy to read code (as I frequently need to read other people's code in order to 'audit' it). But like others have said, in real Rust code the ability to mix blocks and expressions does not seem particularly confusing to me, and is used in many places other than the end of a function, in more of a functional style. Here is a representative-ish example: https://github.com/rust-lang/rust/blob/master/src/librustc/m... Personally I think most other things in Rust (namespaces, constant as_slice() unwrap() etc.) are currently too verbose, although I'd say that also impedes readability. |
|
I do agree with the rest of your first paragraph though.