3 ms·
> Don't languages with native MOPs, such as Python and Ruby, create better internal DSLs than Perl? Why would you say that? It seems to me that a DSL's functi
by einhverfr 13y ago
> Don't languages with native MOPs, such as Python and Ruby, create better internal DSLs than Perl?
Why would you say that?
It seems to me that a DSL's function is at least reasonably decoupled from the method it uses behind the scenes, and that there is no real difference between a native MOP (like that in CLOS -- I don't really see an equivalent in Python or Ruby) and a non-native one like Class::MOP in Perl in this regard.
- danellis 13y ago> Why would you say that? It helps you strip out code that isn't related to the DSL. For example, the mechanisms of class definitions in things like MongoEngine or Django's ORM. You end up with something that looks a lot more declarative.