The term was originally coined in LISP, where data and code are almost the same.
But Ruby is monopolizing this somehow now and people tend to call any function calls without parens a DSL.
> if there are any advantages to this approach to a configuration file.
It has some advantages like
Martin Fowler's book is an interesting read about DSL, though it often shows his origins in statically typed languages.
Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery
FootballPerl is like chess, only without the dice
*) I couldn't find chromatic's original blog post anymore, but he commented once about the hype.
1. Have you ever programmed in a language other than Ruby? (PHP and HTML don’t count.) If not, it’s a DSL.
2. Is the defining syntactic feature that youÂ’ve cleverly left the parentheses off of a list of function arguments? If so, it’s a DSL.
3. Is the code primarily a list of key-value pairs? Welcome to DSL Town, population you!
5. Have you ever used the phrase "… and it reads just like English!” in seriousness? You’d better get to the hospital; you’re coming down with a case of the DSLs!
In reply to Re: Is use of a simple DSL for a configuration a good idea?
by LanX
in thread Is use of a simple DSL for a configuration a good idea?
by nysus
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |