Spec for Node.js callback-style (CPS1)

136 views
Skip to first unread message

Morris Brodersen

unread,
Jan 27, 2015, 12:11:36 PM1/27/15
to nod...@googlegroups.com

Motivated by questions like:

I figured Node's main callback style might need a spec, so I attempted to write one: Continuation-Passing Style 1. I think there are only a few exceptions in Node that don't conform, like http.request. Looking forward to discussing it!

Alexander Behrens

unread,
Jan 27, 2015, 2:34:57 PM1/27/15
to nod...@googlegroups.com
I really like that idea! I will follow!

--
Job board: http://jobs.nodejs.org/
New group rules: https://gist.github.com/othiym23/9886289#file-moderation-policy-md
Old group rules: 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 unsubscribe from this group and stop receiving emails from it, send an email to nodejs+un...@googlegroups.com.
To post to this group, send email to nod...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/nodejs/00144721-af70-4839-9fb6-973838b701f5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Morris Brodersen

unread,
Feb 3, 2015, 6:29:30 AM2/3/15
to nod...@googlegroups.com
Thanks for your interest! It seems to work well as it is, so I released version 0.1.0. I also wrote a very small wait-for-parallel-callbacks mechanism as a proof of concept: https://www.npmjs.com/package/joinback

I'm still looking for reviews, issues, clarifications, or any other contributions. Do you know of a good way to promote the spec some more? Also, if anybody adds CPS1-compliance as a feature to their project, please let me know.
Reply all
Reply to author
Forward
0 new messages