2 ms·
Weird syntax? Maybe you should try Haskell, OCaml, Erlang, or even Rust instead. Then come back to Go and tell me if it's actually that "weird."
by icedchai 8y ago
Weird syntax? Maybe you should try Haskell, OCaml, Erlang, or even Rust instead. Then come back to Go and tell me if it's actually that "weird."
- AsyncAwait 8y agoIt's a bit Pascale-y, which may be a turn off to some. I do wonder why you'd consider Rust, (or even Haskell), to have weird syntax?
- icedchai 8y agoRust 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 8y agoRust 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 8y agoAlso, 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.