|
Both are used to forward a den class to another class, and their parameters are similar. What exactly is the difference between them? |
Replies: 2 comments 2 replies
|
I would suggest getting used to policies. AFAIK, batteries.forward is implemented with policies now, and is mostly provided for backwards compatibility. While the battery does look more powerful, that's because a lot of the complexity of it is decomposed into other policy tools, which are significantly more powerful when put together in the long run. We still need to work up better docs on how it all fits together. But if you have any trouble accomplishing your goals, let us know and we'll help you! |
|
@HPCesia policies describe relationships; which in essence is what a forward is. They formalize this concept and give us a grammar to link entities and aspects. Policies in fact are much more powerful through composition -- although their actual effects are more atomic in nature. Their full realization will come in the next den kernel iteration that I'm hard at work on. Den will transition from a resolution stream/simple AST to a fully realized graph. |
I would suggest getting used to policies. AFAIK, batteries.forward is implemented with policies now, and is mostly provided for backwards compatibility.
While the battery does look more powerful, that's because a lot of the complexity of it is decomposed into other policy tools, which are significantly more powerful when put together in the long run.
We still need to work up better docs on how it all fits together. But if you have any trouble accomplishing your goals, let us know and we'll help you!