4 ms·
> it's harder to have a function return more than one value in C than it is in most architectures Biggest issue is the cultural aversion to returning structs a
by Gibbon1 7y ago
> it's harder to have a function return more than one value in C than it is in most architectures
Biggest issue is the cultural aversion to returning structs and tagged unions.
- a1369209993 7y agoAnd it's not even hard, just ugly. Which is much less of a problem for a compiler IR.
- pizlonator 7y agoThat’s true. If you’re doing a lot of that then llvm ir might be nicer. Matter of taste of course.
- Gibbon1 7y agoSome syntactic sugar using anonymous structs and type inference would probably fix the ugly.