I would really really appreciate it if Node were to consistently get behind
err being the first param, even when it's nonsensical.
Readline.question could stand being made from answer => void to err,answer
=> void as well.
On Friday, August 17, 2012 6:57:18 PM UTC-4, Alexey Petrushin wrote:
>
> Wondering why `fs.exists` doesn't comply to async methods pattern and
> doesn't return error as a first argument?
>
> It uses
>
> fs.exists('/etc/passwd', function (exists) {
> util.debug(exists ? "it's there" : "no passwd!");});
>
>
> Instead of
>
> fs.exists('/etc/passwd', function (err, exists) {
> util.debug(exists ? "it's there" : "no passwd!");});
>
>
--
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