Skip to content
Better HN
Top
New
Best
Ask
Show
Jobs
Search
⌘K
undefined | Better HN
0 points
elcritch
2y ago
0 comments
Share
You might like Patty. It makes case types more ergonomic:
https://github.com/andreaferretti/patty
0 comments
default
newest
oldest
khaledh
2y ago
Neat! Thanks for sharing. This might come in handy, although the constraint of unique field names across variant cases is still there.
elcritch
OP
2y ago
Yah 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
j
/
k
navigate · click thread line to collapse