You are not specifically talking about this in your question, but it seems that when you say DSL, do you mean Internal DSL ?
Internal DSLs are great, but in principle you are always limited by the syntax of the language you are trying to use. Scala is a particularly good language for writing internal DSL because it has a simple and flexible syntax. But it is not infinitely flexible.
Other options you might want to explore may be:
- Select a different character instead of ".". Scala can support Unicode identifiers, so if you like to follow this path, perhaps you can use "∙"?
- Instead of external DSL
Paul butcher
source share