top | item 31833801

(no title)

elpescado | 3 years ago

> For readability, this is reasonable.

With four branches, maybe. With more branches, having array of tens of function pointers makes hard to tell which index maps to which function call. OTOH, that can somehow be mitigated (at least in C99) with designated initialisers.

discuss

order

No comments yet.