[go-nuts] Re: Go2 Error Handling Feedback

2018-11-02 Thread Egon
Your example code is missing 4 error checks that should additionally be handled. On Thursday, 1 November 2018 11:17:37 UTC+2, Henry wrote: > > Hi, > > I am concerned with the direction Go2 is going. If anything, Go2 should > reduce and consolidate features from Go1 rather than adding new ones.

Re: [go-nuts] Re: Go2 Error Handling Feedback

2018-11-01 Thread Burak Serdar
On Thu, Nov 1, 2018 at 5:18 AM Laurent Moussault wrote: > > IMHO, this kind of refactorization actually makes the code less readable, for > everyone but the programmer that just wrote it. Though it may seem obvious at > first what functions like "CopyFile" do, an outsider reading the code will

[go-nuts] Re: Go2 Error Handling Feedback

2018-11-01 Thread Laurent Moussault
IMHO, this kind of refactorization actually makes the code less readable, for everyone but the programmer that just wrote it. Though it may seem obvious at first what functions like "CopyFile" do, an outsider reading the code will have to check the source to know for sure what is going on. Whe