News for hackers. Stuff that matters.
Re:Why Zig When There Is Already CPP, D, and Rust? (2017) by isaachier on Sunday October 14, 2018 @10:33PM (#18217043)
I imagine this is about tgmath.h. I've found the use of the word generic a bit misleading there.
Re:Why Zig When There Is Already CPP, D, and Rust? (2017) by cygx on Monday October 15, 2018 @01:41AM (#18217620)
No, it's very likely about _Generic. <tgmath.h> was added to C99 in an attempt to steal Fortran mindshare, ie making numerics and scientific computing less cumbersome (the same is true for other features, eg complex numbers or restrict). But in C99, it was still special-cased. The next standard C11 introduced _Generic so people could create their own type-generic interfaces.