in reply to Re^3: How to no goto or gosub
in thread How to no goto or gosub
Yeah, I tend to stay away from elsif. Of course there are exceptions (aren't there always?), but I find that creating a logic flow that depends on lots of elsif calls just encourages people to continue expanding the structure long beyond the point it should have been refactored (case in point - one of our monolithic scripts has something like 30 or 40 chained elsif statements)
Yes, I agree that unless has a small useful footprint, but I also think that if and elsif (especially the latter) are very easy to abuse.
|
---|