|
|
|
|
|
by azth
4427 days ago
|
|
> Not necessarily. Maybe you want to return the number of bytes read until the error AND the error. Not mutually exclusive. The number of bytes read until the error occurred could be part of the error itself. Sum types are practically always better. The problem is that Go does not support them. |
|