in reply to Re^2: Sparing multiple 'or's
in thread Sparing multiple 'or's
I coded for expansion. With the OP's case, I do expect their code to be littered with statements like that. What would you choose? On hash, like I did, with explicit names/keys indicating the purpose of the hash entry (easily expandable) or numerous single-level hashes, all maintained differently.
If it is just for this single statement, it is a fun-to-read thread for all approaches, but none is an actual improvement over the original or'd eqs. I would not change a thing. If this kind of expression will appear all over the code, I'd choose the simplest to maintain method. YMMV.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Sparing multiple 'or's
by Eily (Monsignor) on Jun 05, 2018 at 08:55 UTC |