[talk] try() in golang
Edward Capriolo
edlinuxguru at gmail.com
Mon Jul 8 10:41:39 EDT 2019
On Mon, Jul 8, 2019 at 10:14 AM Brian Coca <briancoca+nycbug at gmail.com>
wrote:
> "try not, do or do not, there is no try!"
>
> It is kind of a poor man's exception handler.
>
> They should either really add exception handling or stick with the
> 'if' err', 1/2 measures like that will end up with worst of both
> worlds.
>
>
> -------------
> Brian Coca
>
> _______________________________________________
> talk mailing list
> talk at lists.nycbug.org
> http://lists.nycbug.org:8080/mailman/listinfo/talk
Agree. I do not find it useful without catch or finally. The fact that they
have to propose such a minimal try and get no traction seems on par with
common google style. Some of the comments about nested try being unreadable
are obvious. You typically do not nest try even in languages where you can.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.nycbug.org:8443/pipermail/talk/attachments/20190708/2756776e/attachment.htm>
More information about the talk
mailing list