Hacker News
points by eru 2 days ago | 0 comments
I'm not sure a struct is the right thing here in general. You often want an algebraic datatype.

What Rust calls an enum, but an enum with payloads. In C terms it would be a discriminated union.

Aún no hay comentarios.
Hacker News