DSLs improve code readability and expressiveness and more importantly give a significant level of abstraction..
You can agree that regular expressions, once you h开发者_开发技巧ave mastered them , text processing becomes easy in any programming language you will learn. What domain specific language have you used that you feel should be standardized across all languages?
Mathematics
A standard notation for lambda expressions would be nice.
I am particularly enamored with Groovy's XmlSlurper as a "good" language syntax for XML:
- facilitates XPath-ish (i.e. GPath) statements
- direct access to nodes and attributes using simple dot notation syntax as opposed to "getNode()" or "getAttribute()" API calls.
精彩评论