Re: [go-nuts] Idea for a language addition for error handling: inject/eject

2022-11-15 Thread Gorka Guardiola
On Sat, Nov 12, 2022 at 12:40 AM Mike Schinkel wrote: > Hi G., > > It takes guts to make a proposal in the Go community. Kudos for doing so. > Or recklessness :-). Thanks. > > However, the issue with this proposal for me is the issue I have with > almost(?) every other proposal to handle

Re: [go-nuts] Idea for a language addition for error handling: inject/eject

2022-11-11 Thread Mike Schinkel
Hi G., It takes guts to make a proposal in the Go community. Kudos for doing so. However, the issue with this proposal for me is the issue I have with almost(?) every other proposal to handle errors in Go differently from what Go currently allows. They all make the assumption that as soon as

Re: [go-nuts] Idea for a language addition for error handling: inject/eject

2022-11-09 Thread Gorka Guardiola
On Wed, Nov 9, 2022, 20:47 Ian Lance Taylor wrote: > On Wed, Nov 9, 2022 at 10:40 AM Gorka Guardiola wrote: > > Seems related to https://go.dev/issue/54361, although due to inject it > is not the same. > I hadn't seen that proposal. > It is similar in the sense that it is a more powerful

Re: [go-nuts] Idea for a language addition for error handling: inject/eject

2022-11-09 Thread Ian Lance Taylor
On Wed, Nov 9, 2022 at 10:40 AM Gorka Guardiola wrote: > > I have the following idea [1] for decluttering error handling in go. It looks > similar to others already presented, but is is different in important ways: > > 1) It does not interfere with or use panic > 2) Is general enough that one