On Apr 30, 2014, at 9:16 AM, Oleg Slobodskoi <oleg...@googlemail.com> wrote:
> Thats the difference. Its actually possible to promisify the api without to 
> loose backwards compatibility.


True, but since most of the calls we make will be non-core, and since modules 
take their cue from node core, their APIs tend to be callback based and will 
need to be wrapped as well (if I want to go all promises, for consistency).

        --ravi


> Overhead is acceptable.
> 
>> On Apr 30, 2014, at 6:31 AM, Oleg Slobodskoi <oleg...@googlemail.com> wrote:
>>> 
>>> Probably I missed this discussion. Now as Promises becoming a standard, 
>>> what is the reason to not to support both, callback style and promises in 
>>> the core?
>>> 
>>> What I am looking for is a lib which can be required as a very first module 
>>> and will wrap every async node core function into a function which accepts 
>>> node style callbacks and returns Promise when no callback is passed.
>>> 
>>> If there is no such thing, are there people who would use it?
>>> 
>> 
>> Q's node specific wrappers work for me. I'd have to wrap each node callback 
>> style call myself, but it's easy enough.
>> 
>>      --ravi
>> 
>> 
>> 
>> -- 
>> -- 
>> 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
>> 
>> --- 
>> 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+unsubscr...@googlegroups.com.
>> For more options, visit https://groups.google.com/d/optout.
> 
> 
> -- 
> -- 
> 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
> 
> --- 
> 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+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

-- 
-- 
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

--- 
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to