Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion Promises, callbacks, Continuables and more
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Isaac Z. Schlueter  
View profile  
 More options Feb 1 2010, 2:16 am
From: "Isaac Z. Schlueter" <i...@foohack.com>
Date: Sun, 31 Jan 2010 23:16:23 -0800 (PST)
Local: Mon, Feb 1 2010 2:16 am
Subject: Re: Promises, callbacks, Continuables and more
+1. Removing promises would rock.

I'm quite a fan of the double-barreled callback/"continuable" style.

  posix.cat("file")(success, error);
  posix.cat("file")(success); // default error just throws

On Jan 31, 11:44 am, Ryan Dahl <coldredle...@gmail.com> wrote:

> On Sun, Jan 31, 2010 at 11:23 AM, Ryan Dahl <coldredle...@gmail.com> wrote:
> > On Sun, Jan 31, 2010 at 7:02 AM, inimino <inim...@inimino.org> wrote:
> >> If node does move to an entirely callback-based API, I would prefer
> >> a "double-barreled" style with separate callbacks for success and
> >> failure.

> > One of the advantages of removing promises entirely would be
> > simplifying the docs. I'd prefer node to be 'only i/o' - except in
> > situations where it makes it very difficult to use without support -
> > e.g. having 'require'.

> (most importantly, not having to support wait() anymore)


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.