Algebraic should allow access to its constituents by name, just like Tuple does. Example:
alias JsonPayload = Algebraic!(
bool,
double,
long,
string,
This[],
This[string]
);
Instead of using get!bool, get!(This[string]) or get!0, get!5 etc., definition should allow inserting names for each:
alias JsonPayload = Algebraic!(
bool, "asBool"
double, "asDouble",
long, "asLong",
string, "asString",
This[], "asArray",
This[string], "asObject"
);
Comment #1 by robert.schadek — 2024-12-01T16:24:37Z