[go-nuts] Re: Make error handling less verbose with Zig %% operator and %return expression?

2017-10-18 Thread Nicolas Grilly
On Wednesday, October 18, 2017 at 4:50:32 AM UTC+2, Bryan Mills wrote: > > There are lots of similar proposals in the issue tracker. > Of those, https://golang.org/issue/21161 seems to have the most traffic. > Bryan, thanks for the link. I wasn't aware of Ian's proposal. -- You received this

[go-nuts] Re: Make error handling less verbose with Zig %% operator and %return expression?

2017-10-17 Thread prades . marq
Personally it's not a verbosity issue but a readability issue 99% of the time. if go fmt would just keep the whole if statement on a single line it would already alleviate some of the pain of having to read a codebase ridden with error handling code. if foo,err = DoIO();err!=nil{return

[go-nuts] Re: Make error handling less verbose with Zig %% operator and %return expression?

2017-10-17 Thread 'Bryan Mills' via golang-nuts
There are lots of similar proposals in the issue tracker. Of those, https://golang.org/issue/21161 seems to have the most traffic. On Tuesday, October 17, 2017 at 5:09:33 PM UTC-4, Nicolas Grilly wrote: > > I just read about Zig, a new programming language designed to replace C. > > The error