logoalt Hacker News

RustyRussellyesterday at 10:13 AM1 replyview on HN

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/_...


Replies

el_pollo_diabloyesterday at 10:31 AM

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.