News for hackers. Stuff that matters.
Re:List Processing in C by route66 on Tuesday December 21, 2010 @05:26AM (#2027449)
Your preference looks a lot like the linux-kernel list.h.

(e.g. http://isis.poly.edu/kulesh/stuff/src/klist/).

Requiring idiosyncratic setup of your list struct though.

Re:List Processing in C by alexgartrell on Tuesday December 21, 2010 @12:59PM (#2028635)
It's certainly inspired by list.h, but I used the same struct as the original. I just think it's crufty to pass "code" as a parameter to a function (in that I've ever really seen it done well).

Of course, I'm talking only about C, as I love to overuse lambda in Python like it's my job