3 ms·
I suspect but do not know that multiple return values in a function combined with the inability to write functions against multiple return types like (T,error)
by ohCh6zos 5y ago
I suspect but do not know that multiple return values in a function combined with the inability to write functions against multiple return types like (T,error) will limit the usefulness of traditional iterators in Go. I'd love to be proved wrong as they'd really clean up my codebase though.
- grey-area 5y agoDepends what you're doing I guess, not everything needs to return an error, and errors can be accumulated and stored during certain operations and dealt with at the end.