I´m working in a DSL using monads and for comprenhension. Since my client has no idea of Scala I´m trying to hide so much syntax as I can. So far I have this DSL
(for {
* <- Given("A message", message(path = "esb", version = TWO))
* <- And("With version 2.0", *)
* <- And("I make esb return 300", *)
* <- When("I make a request", *)
* <- Then("The return code is 500", *)
} yield ()).foldMap(scenario)
This is far better than make them implement scalaTest, but still this for comprehension can scare them.
There´s any way to hide the for/yield using implicit u other mechanism and just leave the DSL?
Regards.