@Oliver createServer is not asynchronous function, it is synchronous function that returns event emitter and optionally accepts listener. It's different concept/pattern and all rules are followed
On Thursday, May 31, 2012 9:08:03 PM UTC+2, Oliver Leics wrote: > > On Thu, May 31, 2012 at 8:08 PM, Marco Rogers <[email protected]> > wrote: > > > >> > >> On a more serious note, what harm does .exists do? http.createServer > >> violates all the rules and it is the first thing a node newbie sees. > >> > > > > Curious. What rules you think createServer violates? > > The callback gets no error argument as the first argument. > > I would rigorously throw away _all_ of those inconsistencies right > now, but at least with 0.8. For me, the leading zero in a > version-number means: Expect changes, anytime, everywhere. > > Nobody could foresee that it is generally best practice to always > reserve the first argument of an callback for error-objects, no matter > if the function checks for file-existence or if it creates a > http-server. But everyone decided to run node.js in production before > the first major release, version 1.0.0. Everyone should know about > that and don't wine if anything breaks. > > Change it before 1. But I doubt that this will happen. > > > > BTW: That google-mail 'beta' label was pure marketing. > -- 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
