Chapter 13Creating Internal DSLs
As humans we don’t communicate the same way all the time. Sometimes we’re formal, sometimes we use slang, and at times all we do is nod or grunt. And we vary between these and other forms throughout the day, depending on the situation, what we’re communicating, and with whom. Programming applications is similar—we communicate with the system and fellow programmers who end up maintaining the code.
Sometimes we need the rigor and full power of general purpose programming languages. At other times we’re better with highly specialized, small, and effective languages called domain-specific languages or DSLs—for a thorough discussion of DSLs see the book Domain-Specific Languages [Fow10]. DSLs can’t be used to program ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access