Erlang isn't bad and I've used it quite a bit. I never said it was bad. That being said I do believe that Go has a better balance of features.
Jose Flores
racket is a better erlang than erlang is
Logan Lee
was just wondering why that iferrnil stuff is everywhere in go code. most other languages dont have anything like that.
Adam Young
Yeah, it's a multiple return. You could really return any kind of var in that second place. It doesn't have to be an error. Doesn't just have to be two either. In something like C or the like, you can achieve something similar by returning an enum or struct. This is just syntactic sugar. Then again, anything beyond asm is just syntactic sugar if you look at it a certain way.
Anthony Lewis
To expand on that, using it as error checking is just common usage. It's not enforced by the language's standards.
Courtesy of Damian Conway # All the primes... constant p = [ (1..∞).grep(&is-prime) ]; # The definitions of "strong" and "weak"... sub strong (\n) { n > 0 && p[n] > p[n-1, n+1].sum/2 } sub weak (\n) { n > 0 && p[n] < p[n-1, n+1].sum/2 } # All the strong and weak primes... constant strong-p = p.kv.map: ->\n,\pₙ {pₙ if strong n}; constant weak-p = p.kv.map: ->\n,\pₙ {pₙ if weak n}; # Print out the first ten... say 'strong primes: ', strong-p[^10]; say 'weak primes: ', weak-p[^10]; say < Rust Go C C++ Java Python Haskell Ruby ATS >.join("Niggers BTFO\n");