NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.
All the Perl that's Practical to Extract and Report
Stories, comments, journals, and other submissions on use Perl; are Copyright 1998-2006, their respective owners.
Internal and External DSLs (Score:1)
Martin Fowler has a nice article [martinfowler.com] where he uses the terms Internal and External DSLs to describe the difference between DSLs implemented within a language and those implemented in a separate language that is then parsed.
As somebody who played a great deal with Lisp I have a fondness for the whole code-as-data paradigm that leads to internal DSLs.
(Aside - feeling generally annoyed off with this utterly f**king pointless Ruby/Perl pissing match. We're turning into the Lisp community. Look how well they did
Re: (Score:2)
OK, I can see how I have contributed to this. Sorry about that. I really like both languages (though I know Perl better, obviously).
And to be fair, I never really considered "internal" DSLs to be DSLs. That's just good programming. I realize this is just picking apart terms and it's probably unfair of me to disagree with what is apparently a common usage of the term, even though the comparison of internal and external DSLs is comparing cheese and Wednesday. They're radically different things with pote
Re: (Score:1)
My sigh wasn't aimed at you :-)
I don't think it is really - maybe my early Lisp experiences have totally warped me (my father's parenthesis [xkcd.com] and all that :-)
It's been my experience that the user of the DSL doesn't care whether it's internal or external. I've met testers using Watir that don't r
Re: (Score:1)
Who made it Perl versus Ruby?
It just so happens that a portion of the Ruby community (probably mostly Rails fans) seems to get very excited every time one of them creates an API and jumps up and down yelling "I MADED A DEE ESS ELL!!! WHOOPAH! YUOU CANNOT DO THIS IN UR LANGAGES HEEHEH FOOLZORZ!" That could happen in any language where a silly idea propagated rapidly.
Meanwhile, I as a polyglot programme
What The Article Is Really Talking About (Score:1)
That's unfortunate. It should be.
When you write a DSL--a real DSL, with a parser and everything--you have the chance to choose your own syntax. That syntax can, and probably should, be appropriate to your domain. (You're writing a DSL because building a little language is the most appropriate way to solve domain problems, right?)
There's nothing wrong with that.
There's also nothing wrong with not
Reply (Score:1)