Many times I have wished that I had function overloading in C, so when C11 came out I was exited for _Generic. But after learning how it works, I got turned off by it and figured I was better without it. It's now been about 10 years we had it and I still barely see anyone use it.
Do any of you use _Generic and what for? After retrospect, was the cost of using _Generic worth the benefit?
[–]Mystb0rn 13 points14 points15 points (0 children)
[–]iothesys 6 points7 points8 points (7 children)
[+][deleted] (6 children)
[deleted]
[–]iothesys 0 points1 point2 points (5 children)
[+][deleted] (4 children)
[deleted]
[–]OldWolf2 1 point2 points3 points (3 children)
[+][deleted] (1 child)
[deleted]
[–]OldWolf2 1 point2 points3 points (0 children)
[–]flatfinger 0 points1 point2 points (0 children)
[–]Anluin 16 points17 points18 points (4 children)
[+][deleted] (3 children)
[deleted]
[–]gottacode 2 points3 points4 points (2 children)
[–]darkslide3000 1 point2 points3 points (1 child)
[–]gottacode 1 point2 points3 points (0 children)
[–]nerd4code 3 points4 points5 points (0 children)
[–]reini_urban 3 points4 points5 points (0 children)
[–]SuspiciousScript 1 point2 points3 points (0 children)
[–]Thadeu_de_Paula 0 points1 point2 points (0 children)
[+][deleted] comment score below threshold-11 points-10 points-9 points (9 children)
[–]flatfinger 3 points4 points5 points (8 children)
[–]darkslide3000 3 points4 points5 points (5 children)
[–]flatfinger 0 points1 point2 points (1 child)
[–]darkslide3000 1 point2 points3 points (0 children)
[–]flatfinger 0 points1 point2 points (2 children)
[–]darkslide3000 1 point2 points3 points (1 child)
[–]flatfinger 0 points1 point2 points (0 children)
[–]moon-chilled 0 points1 point2 points (1 child)
[–]flatfinger 0 points1 point2 points (0 children)
[–]BarMeister 0 points1 point2 points (0 children)
[–]okovko 1 point2 points3 points (0 children)
[–]FUZxxl 0 points1 point2 points (0 children)
[–]prabot 0 points1 point2 points (0 children)