3 ms·
Of course, anything you can create abstractions with you can create a DSL of sorts. But I think most would agree that OOP is the more natural paradigm for this.
by hackinthebochs 14y ago
Of course, anything you can create abstractions with you can create a DSL of sorts. But I think most would agree that OOP is the more natural paradigm for this.
- papsosouid 14y agoMost would agree because most have never used anything other than OOP. That isn't saying anything interesting. I find OOP to be most often awkward and difficult to express the rules of my application in. Functional programming does it quite naturally, as it is all about creating small simple components and combining them to produce larger components. My rules are simply the combination of smaller rules applied in order.
- se85 14y agoThis is exactly how I feel also. This simple logic of fitting smaller things together to make bigger things has always delivered superior results for me regardless of the language in use. OOP seems ass backwards to me but everyone I talk to generally doesn't have a clue how FP is different to OOP!
- swift 14y agoIf anything it's quite the opposite; most OOP languages are extremely limiting for DSL creation as compared to most FP languages.