Checkpoint: One List, Many Views
intermediate26 min readLesson 124 of 148
Prove the X-macro discipline: enum, dispatch, and lookup all generated from a single source of truth.
The task
Implement op_apply and op_from_name (see the challenge) over the
provided OPS list — every view generated from it, none hand-copied.
The overflow rule makes op_apply a real API: compute wide, reject
what does not fit, document nothing twice.
Passing this proves the preprocessor's superpower: parallel structures that cannot drift, because there is only one list.
Next module: trees and heaps — the hierarchy beyond lists.