<br><br>On Monday, July 8, 2019, Sujit K M <<a href="mailto:kmsujit@gmail.com">kmsujit@gmail.com</a>> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Jul 8, 2019 at 8:12 PM Edward Capriolo <<a href="mailto:edlinuxguru@gmail.com" target="_blank">edlinuxguru@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Jul 8, 2019 at 10:14 AM Brian Coca <<a href="mailto:briancoca%2Bnycbug@gmail.com" target="_blank">briancoca+nycbug@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">"try not, do or do not, there is no try!"<br>
<br>
It is kind of a poor man's exception handler.<br>
<br>
They should either really add exception handling or stick with the<br>
'if' err', 1/2 measures like that will end up with worst of both<br>
worlds.<br>
<br>
<br>
-------------<br>
Brian Coca<br>
<br>
______________________________<wbr>_________________<br>
talk mailing list<br>
<a href="mailto:talk@lists.nycbug.org" target="_blank">talk@lists.nycbug.org</a><br>
<a href="http://lists.nycbug.org:8080/mailman/listinfo/talk" rel="noreferrer" target="_blank">http://lists.nycbug.org:8080/<wbr>mailman/listinfo/talk</a></blockquote><div><br></div><div>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.</div><div><br></div></div></div></blockquote><div><br></div><div>Found some thing interesting why Go avoids Exceptions. It is the way they think I guess.</div><div><a href="https://dave.cheney.net/2012/01/18/why-go-gets-exceptions-right" target="_blank">https://dave.cheney.net/2012/<wbr>01/18/why-go-gets-exceptions-<wbr>right</a> </div></div></div></blockquote><div><br></div><div> <span style="color:rgb(68,68,68);font-family:"Open Sans",Helvetica,Arial,sans-serif;font-size:14px">You can’t throw an exception inside a method without annotating that method’s signature to indicate you may do so, and you can’t call a method that may throw an exception without wrapping it in code to handle the potential exception. Via the magic of compile time bondage and discipline the error problem is solved, right?</span></div><div><span style="color:rgb(68,68,68);font-family:"Open Sans",Helvetica,Arial,sans-serif;font-size:14px"><br></span></div><div><span style="color:rgb(68,68,68);font-family:"Open Sans",Helvetica,Arial,sans-serif;font-size:14px">Wrong. There are checked and unchecked exceptions in java. You DONT have to annotate the method if the exception is an unchecked exception. </span></div><div><span style="color:rgb(68,68,68);font-family:"Open Sans",Helvetica,Arial,sans-serif;font-size:14px"><br></span></div><div><span style="color:rgb(68,68,68);font-family:"Open Sans",Helvetica,Arial,sans-serif;font-size:14px">Author spends way to much time wrongfully explaining how other languages work and I got tired of reading before the go part.</span></div><div><span style="color:rgb(68,68,68);font-family:"Open Sans",Helvetica,Arial,sans-serif;font-size:14px"><br></span></div><div><span style="color:rgb(68,68,68);font-family:"Open Sans",Helvetica,Arial,sans-serif;font-size:14px">Moral of the story , they were able to add good and try catch to perl. But go folks cant get it done.</span></div><br><br>-- <br>Sorry this was sent from mobile. Will do less grammar and spell check than usual.<br>