Because we spend a lot of time convincing library authors not to defect from the standard callback signature. Diverging from it in core sends the wrong message.
On Aug 20, 2012, at August 20, 20128:59 AM, Arnout Kazemier <[email protected]> wrote: > I really dont get why people want to depricate functions just because they > dont agree with the api signature. > > This is a useful function, it doesnt hurt anyone if we keep it, but it does > hurt when its removed. > > On 20 aug. 2012, at 17:53, Tim Caswell <[email protected]> wrote: > >> How about removing it from the docs and making it non-enumerable in >> the fs module. Then any new developers won't know it's there unless >> they are reading someone else's code. Or maybe in the docs simply say >> that it shouldn't be used and is only left there so as to not break >> old code. Also, how is this different from deprecation? >> >> On Sun, Aug 19, 2012 at 4:02 PM, Bert Belder <[email protected]> wrote: >>> On Sunday, August 19, 2012 8:23:53 PM UTC+2, Nuno Job wrote: >>>> >>>>>> Maybe a note in the docs tell people that fs.stat is a better choice? >>>> >>>> Good idea Mikeal. Deprecation console.error && pointing people to >>>> fs.stat in the docs should do the trick. >>> >>> >>> I don't see enough compelling reasons to deprecate it. I think a doc >>> addition that warns people about the funky signature and the anti-pattern >>> would suffice. >>> >>> - Bert >>> >>> >>> -- >>> 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 >> >> -- >> 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 > > -- > 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 -- 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
