News for hackers. Stuff that matters.
Re:A fun optimization trick from rsync by usefulcat on Monday October 29, 2018 @12:38AM (#18325100)
> 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.

Re:A fun optimization trick from rsync by carlmr on Monday October 29, 2018 @07:30AM (#18326570)
Yeah, I think both methods are somewhat opaque, and the one described here is opaque + hacky. I wouldn't let this through code review.