News for hackers. Stuff that matters.
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().
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.
Re:Everyday hassles in Go by dalke on Tuesday December 30, 2014 @09:59AM (#8814816)
_Generic makes it easy to implement things like tgmath yourself.