3 ms·
> how does the strategy pattern differ from just passing a function pointer? It's just a verbose way to perform the same abstraction. Use it only if function
by Deestan 16y ago
> how does the strategy pattern differ from just passing a function pointer?
It's just a verbose way to perform the same abstraction. Use it only if function pointers are unavailable or considered unsafe in your programming language.