[ccan] [PATCH 0/4] order_functions: Helpers for comparison callbacks

Rusty Russell rusty at rustcorp.com.au
Tue Jun 2 11:03:02 AEST 2015


David Gibson <david at gibson.dropbear.id.au> writes:
> Standard library routines like qsort() and bsearch() take a
> user-defined comparison callback in order to determine the order of
> the elements they're handling.  The asort, asearch and avl ccan
> modules use a similar pattern.

Nice!

I think it should just be renamed to "order" (or ordering?).  I don't
think that will clash, and short names win.

Thanks,
Rusty.


More information about the ccan mailing list