4 ms·
Are we getting a non-broken `_Generic` yet? Because that's the thing that made me give up with disgust the last project I tried to write in C. Manually having t
by o11c 1y ago
Are we getting a non-broken `_Generic` yet? Because that's the thing that made me give up with disgust the last project I tried to write in C. Manually having to do `extern template` a few times is nothing in comparison.
- uecker 1y agoWhat is a non-broken `_Generic' ?
- o11c 1y agoA `_Generic` that only requires its expressions to be valid for the type associated with them, rather than spewing errors everywhere.
- uecker 1y agoThis is intentional. But my idea for _Generic is to have _Generic(x, int i: i + 1, float f: f + 1.); where the i and f then have the correct type, so you do not need to refer to 'x' in those expressions.