Why Use Domain Specific Language
Lisp is regarded by some as the domain specific language for any domain.
Why use domain specific language. 6 minutes to read 2. Dsls do not always need to be big maintenance. Following my previous post on domain specific languages dsl i had the pleasure of reading some responses. In some cases fashioning a dsl from lisp or a similar language such as haskell could actually provide a lot of power with minimal effort and thus would be quite worthwhile.
Unlike a general purpose language such as c or uml a domain specific language dsl is designed to express statements in a particular problem space or domain. A domain could be a business context e g banking insurance etc or an application context e g a web application database etc in contrast a general purpose language gpl can be used for a wide range of business problems and applications. The short answer is that domain specific languages are limited in the things they can do but because of their specialization they can do much more in their own limited domain. Ovid agrees but is a bit more thoughtful and explains.
People who are comfortable with the discourse of a particular domain and can converse using that language are able to have more detailed nuanced and in depth conversations than outsiders. A domain specific language dsl is a language meant for use in the context of a particular domain. Examples of vocabulary in various domains. Why using a specific limited language instead of a generic powerful one.
If i had to maintain his code i d refactor that part out of existence with a quickness. There are a wide variety of dsls ranging from widely used languages for common domains such as html for web pages down to languages used by only one or a few pieces of software such as. I mean evaluating another source file every time you instantiate an object in that class. The basic idea of a domain specific language dsl is a computer language that s targeted to a particular kind of problem rather than a general purpose language that s aimed at any kind of software problem.
Domain specific language is a marker of inclusion within a community of practice. A well supported and very extensible dsl at that.