4 ms·
> has the potential to be really opaque and confusing Yes, but.. compared to switch and preprocessor hacks described in the article? Granted it's subjective bu
by usefulcat 8y ago
> has the potential to be really opaque and confusing
Yes, but.. compared to switch and preprocessor hacks described in the article? Granted it's subjective but I'd find a function pointer that's assigned to once to be way easier to comprehend.
- carlmr 8y agoYeah, I think both methods are somewhat opaque, and the one described here is opaque + hacky. I wouldn't let this through code review.