News for hackers. Stuff that matters.
Re:What if anything have we learned from C++? [video] by ksherlock on Friday July 24, 2015 @08:26AM (#9941432)
C11 has type generic macros. You can build your own with the _Generic statement.

    int maxi(int, int);
    double: maxd(double, double);
    ...
    #define max(x) _Generic((x), int: maxi, double: maxd, ...default: maxi)
Re:What if anything have we learned from C++? [video] by f00fc0d3 on Friday July 24, 2015 @09:32AM (#9941824)
Yeah, but you still need to write those maxi, maxd :-(