2 ms·
As a special case, Go does allow foo(bar()) if foo takes two args. What it doesn't allow is foo(bar(), baz()) with errors.
by erik_seaberg 9y ago
As a special case, Go does allow foo(bar()) if foo takes two args. What it doesn't allow is foo(bar(), baz()) with errors.
- 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)