Hot answers tagged

2

This isn't really specific to Scala DSLs. You have the same problem with the traditional Builder pattern, when you want a builder that needs to be given certain things. Instead of execution order it is then a dependency. For example, you want a builder that can build either ProductA or ProductB, but when you choose ProductA you must specify a delivery ...



Only top voted, non community-wiki answers of a minimum length are eligible