[go-nuts] Re: rinn: return if not nil syntactic sugar

2020-08-30 Thread Zakaria bin Haris
Cause the objection for previous error handling is code coverage, the solution is for code coverage tools to desugarize *rinn* syntax. The objective to minimize error handling "noise" from human eyes. On Monday, August 31, 2020 at 9:29:44 AM UTC+7 Zakaria bin Haris wrote: > For completeness if

[go-nuts] Re: rinn: return if not nil syntactic sugar

2020-08-30 Thread Zakaria bin Haris
For completeness if the function is something like: func x() (data *Data, err error) { } then *rinn* should be smart enough to assign error to err variable and just do return instead return err On Monday, August 31, 2020 at 9:19:48 AM UTC+7 Zakaria bin Haris wrote: > Sorry, I mean return i