3 ms·
This is surprising enough I'm not sure how to respond anymore. > which is especially interesting: how come a Symbol knows how to perform an action it can repre
by philwelch 13y ago
This is surprising enough I'm not sure how to respond anymore.
> which is especially interesting: how come a Symbol knows how to perform an action it can represent on some given object? I dunno. It just does.
Presumably it just sends itself to the object you pass in? This is not something I'm actually bothered by.
I guess it depends on how you extend classes you don't own. If the adapters themselves are modular and are only loaded with the class that they're trying to adapt to, that might be OK. In other words, if I have a DatabaseConnection class that extends other classes with asDatabaseConnection methods, and that extension only happens when I load the DatabaseConnection class, that still satisfies the intention of SRP even though I'm technically implementing methods on other classes.