On Saturday, February 8, 2020 at 10:55:10 AM UTC-7, Brian Candler wrote:
>
> On Saturday, 8 February 2020 10:33:03 UTC, addi t0t08 wrote:
>>
>> No, 'pass' accepts an error type. in this case Foo function must return
>> an error type otherwise that would be a co
On Saturday, February 8, 2020 at 2:14:31 AM UTC-7, Brian Candler wrote:
> On Saturday, 8 February 2020 07:02:34 UTC, addi t0t08 wrote:
>>
>> I think the keyword we are looking for is `pass`. Similarly, `pass` only
>> needs to return if err != nil.
>>
>> func writ
I see your point. I think it may be better to* narrow the scope* of what
should be improved.
For the most part, I like the simplicity of error handling in Go, but I
would very much like a less verbose
way to pass errors.
Technically we are not talking about handling the errors but we just want
In case of multiple return values, it works similar to the original
proposal. This should work with multiple return values. As I stated, this
isn't a complete proposal.
On Thursday, February 6, 2020 at 10:55:35 PM UTC-7, MUNGAI wrote:
>
> I agree,
> Some of the proposals introduce more trouble