Re:Go 2 Draft Designs
by pcwalton on Tuesday August 28, 2018 @12:39PM
(#17860291)
Yeah, the control flow of "handle" is the most questionable thing, from my standpoint. (Incidentally, I find the function-scoped nature of "defer" unfortunate too.)
[ Parent
| on HN ]
handle/check looks like try/catch in reverse order with check/try limited to statements instead of code blocks. Not sure if that's an improvement or just different for the sake of being Go.