3 ms·
> As a special case, Go does allow foo(bar()) if foo takes two args Good to know (though somewhat disgusting), but for error-returning functions I would assume
by masklinn 9y ago
> As a special case, Go does allow foo(bar()) if foo takes two args
Good to know (though somewhat disgusting), but for error-returning functions I would assume the external ones would take a single argument aka in foo(bar(baz()) I'd expect
func foo(arg W) (result X, err error)
func bar(arg V) (result W, err error)
func baz() (result V, err error)