Hi Raynos, thanks for the feedback, but I'm not entirely sure what you mean by DSL, do you mean "domain specific language"?
Are you saying you don't like the method I use for chaining, o_o(...)(...)(...)? The intent was to keep the api as limited as possible.
The expectation is that you can pretty much put whatever kind of function you want into a "link" in the chain, and it will work as you'd expect.
So:
o_o
(
someFunction
)(
anotherFunction
)();
Will just work, but in the case of advanced execution models, you can alias anonymous functions and map their flow with a pseudo-orchestration:
o_o
(
"anAlias",
function() { ... }
)(
"anotherAlias",
function() { ... }
)(
"finish",
function() { ... }
)(
//this is the execution map
{
"anAlias":"anotherAlias",
"anotherAlias":"finish"
}
)();
Thanks again,
-Clay