This is good, gets me thinking. This brings up that there are 2 styles of 
approaching this issue:

abort style - manually cause the action to fast fail
condition style - provide a condition to check on every step of the action

May help others thinking about this as well to think of both perspectives, 
personally I prefer abort style when available to 
avoid unnecessary condition checks. But condition checks can be reduced to 
a boolean, so that may be a suitable solution still.

-- 
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 nodejs@googlegroups.com
To unsubscribe from this group, send email to
nodejs+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en

Reply via email to