Good idea indeed. If we write it like this:
var circuit=new Circuit({ 
   "->sum1" : function() { add(1, 2, this.setter.sum1) }, 
   "->sum2" : function() { add(3, 4, this.setter.sum2) }, 
   ...
}) 
circuit.run(printResult); 

- it solves 2 problems:
1) makes parsing of the body of function unnecessary
2) makes annotations unnecessary.

Thanks for suggestion! I will update the proposal.
Alex


-- 
Job Board: http://jobs.nodejs.org/
Posting guidelines: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en

Reply via email to