in reply to if else and not reachable coding style
Although there are a lot of answers already, an important point is missing: Gernerally speaking, your question is not a question of style. It is a question of logic and should be guided by the imperative:
Be explicit!
Let's assume that COND is (COND A or COND B). Then, what is the proper meaning of else? (ok, that was purely rhetorical.)
In other words, except for the most trivial CONDs I would always use the most explicit form, even dispatch tables.
|
|---|