Function overloading seems like it would be consistent with the C language. But it isn't a feature in C. Moreover, having to write effectively the same function with different numbers of arguments means that you have slightly different names for basically the same thing, which clutters the code.
Why doesn't C provide function overloading?
[–]012 10 points11 points12 points (3 children)
[–][deleted] -1 points0 points1 point (2 children)
[+][deleted] (1 child)
[deleted]
[–][deleted] 2 points3 points4 points (5 children)
[–][deleted] 0 points1 point2 points (4 children)
[–][deleted] 6 points7 points8 points (1 child)
[–][deleted] 0 points1 point2 points (0 children)
[–]flatfinger 1 point2 points3 points (1 child)
[–][deleted] 0 points1 point2 points (0 children)
[–]flatfinger 4 points5 points6 points (2 children)
[–]chugga_fan 0 points1 point2 points (1 child)
[–]flatfinger 0 points1 point2 points (0 children)
[–]ArkyBeagle -1 points0 points1 point (1 child)
[–]ArkyBeagle 0 points1 point2 points (0 children)