The FOR-CASE paradigm

by in Feature Articles on Edit

Marc Holmes sent in a code snippet that explores a whole new programming paradigm using CASE statements and FOR loops ...

Now that's a helluva lot more efficient than I would have done it. Raise your hand if you would do as I would have done:
i = 0
if i = 0 then [...]
if i = 1 then [...]
if i = 2 then [...]
[...]
i = 1
if i = 0 then [...]
if i = 1 then [...]
if i = 2 then [...]
[...]
i = 2
if i = 0 then [...]
if i = 1 then [...]
if i = 2 then [...]
[...]

Thanks for the tip Marc!

[Advertisement] BuildMaster allows you to create a self-service release management platform that allows different teams to manage their applications. Explore how!

AltStyle によって変換されたページ (->オリジナル) /