<div><br></div><div>Yes indeed. their "defer" mechanism gets to be catch blocks as an extra thing. I wonder if the Go compiler treats recover() specially to optimize happy paths. It certainly could.</div><div><br>
</div>Go is the first compiled language I've seen with "Yoda's exceptions" as discussed thirteen years ago on<div>the perl six development lists. They recommend against using them, and didn't even bother to suggest repanicking with the received exception after recovering an unexpected panic topic. Which is obvious to </div>
<div>anyone who likes exception-based control flow, so no hard feelings. I like the way that the "defer" keyword, which is like on_exit from CPAN (my version works better! prefer local$on_exit, it will continue to work right even if garbage collection starts getting deferred) doubles as "catch."</div>
<div><br><div class="gmail_quote">On Fri, Apr 26, 2013 at 3:52 PM, Teal <span dir="ltr"><<a href="mailto:ironicface@earthlink.net" target="_blank">ironicface@earthlink.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

  
    
  
  <div text="#000000" bgcolor="#FFFFFF">
    <div>I think the go approach is pretty
      interesting.<br>
      Seems to create some other possibilities besides just error
      handling.<br>
      <br>
      Teal</div></div></blockquote></div><div><br></div>-- <br><b style="font-family:Times;font-size:medium;font-weight:normal"><span style="font-size:15px;font-family:Arial;vertical-align:baseline;white-space:pre-wrap">indigestion from sufficiently magical technology is no advance</span></b>
</div>