From: gabriele renzi Date: 2005-05-16T05:45:38+09:00 Subject: Re: [ANN] Precedence 0.6 Farrel Lifson ha scritto: >>wow, this seem cool, thanks for releasing it. >>Anyway, I wonder why you designed the api this way (I'm dumb that's not >>your fault): >> why add_activity does not allow pre and post conditions to be set ? >>Also, IMHO an alias #<< for #add_activity would be nice >> > > > I actually never thought about it but some post facto justification is > that from the network level I guess it might be better seperating > adding activities to the network and connecting them. What I probably > will do in the next version is have add_activity return the added > activity so that you could then say > net.add_activity(someActivity).add_post_activities(someOtherActivity) then I'd probably ask about adding #<< to Activity so that you could write: net << act1 << act2 << act3 but maybe I just need more sleep :) Thanks for the answer.