4 ms·
At the bottom of the page lemonade is made: > Apart from the most obvious answer (that it’s useful for things exactly like <tgmath.h>), the best thing I’ve tho
by AlbertoGP 3y ago
At the bottom of the page lemonade is made:
> Apart from the most obvious answer (that it’s useful for things exactly like <tgmath.h>), the best thing I’ve thought of to do with _Generic is to use it for deliberate error checking.
> The annoyance in all the previous sections was that it was very hard to avoid compile errors, when we wanted our code to actually compile, run and do something useful. But if what we wanted was to provoke compile errors on a hair-trigger basis, then perhaps we could use it for that more reliably?