I need a new approach to breaking me of this bad habit.I bet that in the majority of your cases, it doesn't make any difference on whether you're using a hash or an array. Unless this access is 1) a bottleneck, 2) the current performance is unacceptable, and 3) changing it to an array makes the performance acceptable, then you've made the wrong choice.
Otherwise, it isn't worth fretting about.
In reply to Re: An irrational coding choice found
by JavaFan
in thread An irrational coding choice found
by Lady_Aleena
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |