3 ms·
> 1. In a world without templates/generics, you have to manually define a different such struct for every possible return type. Can be macro'd at the function d
by signa11 3y ago
> 1. In a world without templates/generics, you have to manually define a different such struct for every possible return type. Can be macro'd at the function definition, but it's ugly.
one trivial possibility/option is to define in-out parameters, and just return errors:
<error-type/int/…> foo(T*, <params>)
will that not be ok ?