Re:C’s Biggest Mistake
by signa11 on Sunday July 02, 2023 @09:02PM
(#36567502)
> 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:
one trivial possibility/option is to define in-out parameters, and just return errors:
will that not be ok ?