|
2Roll4Life7 and Polyphemus_, if you want to play with getting it "neater"
1) Define what you mean by "neatness", and provide some measure by which you determine how neat some code is;
2) Try different approaches.
In keeping on topic with this thread, one measure might be related to the amount of repetitive code ......
In practice, I don't tend to like nesting switch/case blocks in if/else blocks (or vice versa) because it takes more time/effort to read and understand, which means it takes more time/effort to maintain.
|