News for hackers. Stuff that matters.
Re:Isaacs: try/catch is an anti-pattern by sausagefeet on Monday November 14, 2011 @10:15AM (#3234260)
I don't think this style is much better than exceptions. I think Go could have done itself a favor if it has variants + pattern matching. I find those to be, in many cases, superior to exceptions as the compiler checks you are handling everything and you can easily encode success and failure in the variant type.
Re:Isaacs: try/catch is an anti-pattern by vog on Tuesday November 15, 2011 @01:41AM (#3237304)
This is exactly what I observed when using OCaml: Although it provides exceptions, I almost never used them. Most things were a lot simpler to implement via pattern matching (http://caml.inria.fr/pub/docs/oreilly-book/html/book-ora016....).