apalu on Nostr: npub1vgs5r…suja8 That's a clear way of articulating the need for those. They are ...
npub1vgs5rx9km8njvq8e5fs7a2c2yzzmvuwfjpqwgxxlyqf6kmfeds0q7suja8 (npub1vgs…uja8) That's a clear way of articulating the need for those. They are very common in TypeScript as well, for the case you're describing.
Now that I think about it, the tagged route would involve potentially 2^n variations on the enum, if you wanted to typecheck away the invalid cases instead of falling back to a panic or something in the default case 😅
Now that I think about it, the tagged route would involve potentially 2^n variations on the enum, if you wanted to typecheck away the invalid cases instead of falling back to a panic or something in the default case 😅