1. 5

Came across the above function overloading on Hacker News and was wondering what the combined brains of Lobsters though about this approach to function overloading in c.

  1.  

  2. 7

    I find the C11 Generic stuff rather ugly. The value of C is minimizing the distance between what you type and what executes at the cost of writing more.

    1. 6

      Function overloading in C, via macros or whatever, is a code smell.

      If whatever you’re doing is something that would benefit from parameter polymorphism, you probably shouldn’t be doing it in C.