3 ms·
> which makes the code hard to read and edit IMO. Languages like Haskell and OCaml suffer from a similar problem too. That's interesting, I've always really lo
by nathcd 6y ago
> which makes the code hard to read and edit IMO. Languages like Haskell and OCaml suffer from a similar problem too.
That's interesting, I've always really loved the "return last expression in a block" syntax. (Ruby and Rust can be added to your list as well.) That syntax just reads really naturally to me.
- frankpf 6y agoI like that too, but both Rust and Ruby allow multiple expressions/statements before the last expression. In Haskell and OCaml IIUC you need to use things like `let x = ... in <expr>` or `<expr> where x = ...`, so you still have a single expression in function bodies.