3 ms·
You might like Patty. It makes case types more ergonomic: https://github.com/andreaferretti/patty https://github.com/andreaferretti/patty
by elcritch 3y ago
You might like Patty. It makes case types more ergonomic: https://github.com/andreaferretti/patty https://github.com/andreaferretti/patty
- khaledh 3y agoNeat! Thanks for sharing. This might come in handy, although the constraint of unique field names across variant cases is still there.
- elcritch 3y agoYah it's annoying, but I just rename one. Beff331 made a lib that uses tuples and avoids the naming issue: https://github.com/beef331/fungus https://github.com/beef331/fungus