I've worked heavily in 2 exception based systems (Java and C++), and in neither case was exception related code a factor in maintainability. If it was, it was a minor add-on to a poor design in the first place (usually lack of proper encapsulation, which also leaks exceptions and their handling).
> On Jun 29, 2019, at 3:03 PM, Burak Serdar <bser...@ieee.org> wrote: > > On Sat, Jun 29, 2019 at 1:45 PM Robert Engels <reng...@ix.netcom.com > <mailto:reng...@ix.netcom.com>> wrote: >> >> If you don’t understand the history you are doomed to repeat it. The ‘try’ >> proposal is barely better than the current situation. There is as a reason >> exception handling with try catch was designed along with OO. It simplifies >> error handling immensely. “Try” as you might, you might think you are >> improving on it, but you’re not. > > I think try-catch simplifies writing error handling code, but not > necessarily simplifies understanding or modifying it once it is > written. > > I, too, like the if err!=nil {} as it is. One improvement I can think > of is reducing the boilerplate by implementing a macro-like > extension: > > func f() { > handle openErr(err) error { > return err > } > x, openErr:=os.Open(...) > > openErr would be called if the error is non-nil. Some months ago I did > write a proposal similar to this, and I was not the only one thinking > along the same lines. It is backward compatible, and the code is still > readable in my opinion. > > > >> >> Go should implement caught exceptions and be done with it. Stop trying to be >> cute. Take what works elsewhere and stop thinking you’re always the smartest >> person in the room. >> >> On Jun 29, 2019, at 2:35 PM, Tyler Compton <xavi...@gmail.com> wrote: >> >> Sorry, forgot to CC on my last email. Here it is again: >> >>> And you must understand the specific: you are solving relatively hard >>> problems developing language called Go with low mistake cost and we are >>> solving simple problems with a DSL called Go but our mistake cost is much >>> higher than yours. >> >> >> Sorry, I'm not sure I understand. Who is the "you" and "we" in these >> circumstances? I should be clear, I'm not a Go core team member and I had >> nothing to do with the creation of the original "try" proposal. I've just >> been involved in the proposal and anti-proposal discussion and noticed a >> shift in tone. >> >>> I thought you are trying to be as practical as possible making a language >>> with such a retarded yet somehow usable type system in XXI. But this recent >>> proposal raises some suspicions... >> >> >> What is XXI? Are you referring to Go's type system? >> >> On Sat, Jun 29, 2019 at 12:18 PM Denis Cheremisov >> <denis.cheremi...@gmail.com> wrote: >>> >>> And prepare for wider audience in shitty “try” proposal after 1 July. >>> >>> -- >>> You received this message because you are subscribed to the Google Groups >>> "golang-nuts" group. >>> To unsubscribe from this group and stop receiving emails from it, send an >>> email to golang-nuts+unsubscr...@googlegroups.com. >>> To view this discussion on the web visit >>> https://groups.google.com/d/msgid/golang-nuts/c99b3572-427c-4b7d-91ff-2fb4e4cb9177%40googlegroups.com. >>> For more options, visit https://groups.google.com/d/optout. >> >> -- >> You received this message because you are subscribed to the Google Groups >> "golang-nuts" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to golang-nuts+unsubscr...@googlegroups.com. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/golang-nuts/CAA%3DXfu031bDbJheZ5-JUbsea1%2BYAn68dfO5ve8pn4T7%3DRFxqRQ%40mail.gmail.com. >> For more options, visit https://groups.google.com/d/optout. >> >> -- >> You received this message because you are subscribed to the Google Groups >> "golang-nuts" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to golang-nuts+unsubscr...@googlegroups.com >> <mailto:golang-nuts+unsubscr...@googlegroups.com>. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/golang-nuts/A4B77F76-E16F-4AE0-AAD4-29C553F079B0%40ix.netcom.com >> >> <https://groups.google.com/d/msgid/golang-nuts/A4B77F76-E16F-4AE0-AAD4-29C553F079B0%40ix.netcom.com>. >> For more options, visit https://groups.google.com/d/optout >> <https://groups.google.com/d/optout>. -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/EBAF5BB3-50A2-46C0-9125-B735951A3D96%40ix.netcom.com. For more options, visit https://groups.google.com/d/optout.