Hacker News new | ask | show | jobs
by nyberg 1656 days ago
You can use union(enum) to avoid having to write a separate enum definition for tags and std.meta.FieldEnum() exists should you also want to derive an enum from the union later on.