Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
icedchai
on Nov 30, 2018
|
parent
|
context
|
favorite
| on:
Go 2, here we come
Rust is probably the least weird of those I listed. I find its syntax "too busy", similar to C++.
Haskell, I feel, needs no explanation.
AsyncAwait
on Nov 30, 2018
[–]
Rust syntax being busy is something I've heard, but people point to things like lifetime annotations, which sort of make Rust what it is so...
majewsky
on Nov 30, 2018
|
parent
[–]
Also, lifetime annotations are not required on the overwhelming majority of functions. If you have, say,
fn substr(text: &str, start: usize, length: usize) -> &str;
the compiler will infer automatically that the return value inherits the lifetime of the `text` argument. I don't find that line up there particularly busy.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
Haskell, I feel, needs no explanation.