News for hackers. Stuff that matters.
Re:Why Go Gets Exceptions Right by cpeterso on Friday September 14, 2012 @12:16PM (#4522400)
Go's error handling reminds me of the Icon programming language's elegant "goal-directed execution". Icon's control structures use implicit "success/failure" instead of true/false boolean logic. For example:

  if a := read() then write(a)
read() could return a false or zero value and still "succeed", calling write(a). If read() returns "failure", then write(a) will not be called. (I don't recall what the value of `a` will be in that case.)

https://en.wikipedia.org/wiki/Icon_programming_language#Goal...

Re:Why Go Gets Exceptions Right by Evbn on Friday September 14, 2012 @09:32PM (#4524879)
That is like return codes in shell.