[talk] try() in golang

Sujit K M kmsujit at gmail.com
Mon Jul 8 11:29:37 EDT 2019


On Mon, Jul 8, 2019 at 8:12 PM Edward Capriolo <edlinuxguru at gmail.com>
wrote:

>
>
> 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.
>
>
Found some thing interesting why Go avoids Exceptions. It is the way they
think I guess.
https://dave.cheney.net/2012/01/18/why-go-gets-exceptions-right
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.nycbug.org:8080/pipermail/talk/attachments/20190708/96499db0/attachment-0001.html>


More information about the talk mailing list