More efficient/elegant branching
Python
python at python.invalid
Tue Dec 10 07:51:50 EST 2019
Musbur wrote:
> I like it! I think it's a cute exercise but it doesn't really solve any
> problem. The if/elif chain can accomplish the same thing (and much more)
> in the same line count for the price of being clunkier. **D
Yep! This is why I wrote half a dozen of switch implementation but never
actually used any of them in a real project :-)
If we had macros it may be another story, but we don't, and we won't (or
will we ?)
More information about the Python-list
mailing list