Re:Yoda Conditions
by jquast on Friday February 17, 2017 @09:37PM
(#13673319)
I wish python had case statements for this very problem. If the statement blocks can be defined by a common function signature, your example could use
I used this in a demonstration terminal nibbles/worms video game clone, https://github.com/jquast/blessed/blob/master/bin/worms.py#L...
[ Parent
| on HN ]
There are no comments on this comment yet.