Maybe you can find and intermediate way that removes most of the code duplication on the first solution but without trying to centralice all the intelligence in a unique complex component. Could you separate the collision handling code in an independent module and combine it with the cache one when required?
In reply to Re: Selecting one of two implementations
by salva
in thread Selecting one of two implementations
by Tanktalus
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |