2 ms·
> But your solution cannot fix the conceptual lack of clarity that follows from the decision of the API designer to return both error information and data for f
by pcwalton 10y ago
> But your solution cannot fix the conceptual lack of clarity that follows from the decision of the API designer to return both error information and data for further processing from the same function call.
That's exactly what Go's API does: it returns error information and "data for further processing" from the same function call.
- fauigerzigerk 10y agoIndeed it does. I find that somewhat questionable, and I wonder how a language would have to be designed to prevent (or discourage) that sort of thing. Or if it is something that should be allowed for pragmatic reasons.