命名函数的返回参数会带来什么好处?
func namedReturn(i int) (ret int) { ret = i i += 2 return } func anonReturn(i int) int { ret := i i += 2 return ret }
go
go ×1