Re: [go-nuts] Re: Proposal: Error handling with else catch (else keyword)

2020-02-16 Thread MUNGAI NJOROGE
Maybe an eye opener, but why is everyone obsessed with the try..catch.. Or try..catch..else error handling? Are we trying to copy idioms from another language? The try..catch..finally in java has always played part in newbie bugs. They tend to skip the error instead of dealing with it. I prefer t

[go-nuts] Re: Error checking in Go: The `try` keyword

2020-02-06 Thread MUNGAI
I agree, Some of the proposals introduce more trouble than the problem they are solving. For example, the proposed try works only iff you are returning a single value of type error. If you have more return values what happens? -- You received this message because you are subscribed to the Goog

[go-nuts] How to fill a map with requests from client

2020-01-03 Thread MUNGAI
Hi, as indicated above, all is a local variable to you function. Maybe you meant to have all variable on a global scope and as a map of maps. Regards -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiv