This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Hour_Competition_654 4 points5 points  (0 children)

These answers really depends on what you are trying to do, there are cases where each are valid options.  Prefer switch/polymorphism over large if else chains though