Y
Hacker News
new
|
ask
|
show
|
jobs
by
RustyRussell
356 days ago
Yes, it's terrible, and the fact that their list_add takes parameters backwards from what one might expect, with no types to catch mistakes!
See
https://github.com/rustyrussell/ccan/blob/master/ccan/list/_...
1 comments
el_pollo_diablo
356 days ago
Absolutely. Wrapping the distinguished entry point in a new structure type equipped with a thin type-safe wrapper API that covers the most common use case is the way to go.
link