← Back to context Comment by uecker 6 months ago What is a non-broken `_Generic' ? 2 comments uecker Reply o11c 6 months ago A `_Generic` that only requires its expressions to be valid for the type associated with them, rather than spewing errors everywhere. uecker 6 months ago This 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.
o11c 6 months ago A `_Generic` that only requires its expressions to be valid for the type associated with them, rather than spewing errors everywhere. uecker 6 months ago This 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.
uecker 6 months ago This 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.
A `_Generic` that only requires its expressions to be valid for the type associated with them, rather than spewing errors everywhere.
This 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.