Re:Everyday hassles in Go
by dalke on Tuesday December 30, 2014 @08:45AM
(#8814543)
C11 added the _Generic keyword, so someone must have complained. A common complaint is the desire to have, say, cos(x) work on floats, doubles, and long doubles rather than calling respectively cosf(), cos(), cosl().
[ Parent
| on HN ]
Re:Everyday hassles in Go
by stephencanon on Tuesday December 30, 2014 @09:34AM
(#8814693)
Huh? C has had the <tgmath.h> header for 15 years, which lets cos(x) do exactly that, and work on complex types besides.