osdir.com


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

More efficient/elegant branching


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 ?)