@[email protected] to [email protected] • 1 year agoThe Python dictionary dispatch patternjamesg.blogexternal-linkmessage-square10fedilinkarrow-up130arrow-down10cross-posted to: [email protected]
arrow-up130arrow-down1external-linkThe Python dictionary dispatch patternjamesg.blog@[email protected] to [email protected] • 1 year agomessage-square10fedilinkcross-posted to: [email protected]
minus-square@[email protected]linkfedilink3•1 year agoI think a similar result might now be achievable with match statements
minus-square@kiwifoxtrotlink0•1 year agoMatch only just came out in Python 3.10, so it doesn’t universally work. I think you implied that in your comment, so I wanted to add context for others.
minus-square@[email protected]linkfedilink2•1 year agoOh, yes. I’m excited for the arrival of match. I’ve used it in rust and it’s very nifty and Pythonic
I think a similar result might now be achievable with match statements
Match only just came out in Python 3.10, so it doesn’t universally work. I think you implied that in your comment, so I wanted to add context for others.
Oh, yes. I’m excited for the arrival of match. I’ve used it in rust and it’s very nifty and Pythonic