3 ms·
It's important to note the difference between the technical mechanism and the motivation for a design. Yes, lots of languages can pass functions around so perha
by thom 8y ago
It's important to note the difference between the technical mechanism and the motivation for a design. Yes, lots of languages can pass functions around so perhaps you think the Strategy pattern doesn't apply to you. And yet I see huge numbers of APIs that still take enormous option maps and don't offer configuration with some sort of callback, however simple the host language might make it. Patterns capture a design _choice_ as much as a technical implementation.