Re:Rust can be difficult to learn and frustrating, but it's ...
by iopq on Tuesday October 23, 2018 @11:17AM
(#18284068)
Here is a simpler syntax:
this is how Haskell with lifetimes and borrowing would look like (if arguments were not curried)
[ Parent
| on HN ]
Re:Rust can be difficult to learn and frustrating, but it's ...
by Rusky on Tuesday October 23, 2018 @07:46PM
(#18288484)
This is arguably less readable, because it's missing some delimiters for your eyes to latch onto.
It's also not realistically parseable- the Haskell/Ocaml-like removal of <>s and ()s relies on application being left-associative, and if you read this under that rule you've changed the meaning (e.g. `From &'a Str`).
Re:Rust can be difficult to learn and frustrating, but it's ...
by olavk on Wednesday October 24, 2018 @06:31AM
(#18291153)
I like removing superfluous punctuation, but if parentheses are removed from method signatures than they should also be removed from invocations, which in turn comes with its own set of readability issues. I'm not a fan of the $ operator in Haskell, for example.