Changing it's signature without renaming or moving it is worse than removing. It would break more code and in a way that is harder to detect.
It has a funky signature, which means you can't use most flow control libraries with it, but we can avoid issues by simply pointing people at fs.stat. Maybe a note in the docs tell people that fs.stat is a better choice? -Mikeal On Aug 19, 2012, at August 19, 201211:02 AM, Isaac Schlueter <i...@izs.me> wrote: > We are not going to remove fs.exists. > > On Sunday, August 19, 2012, Nathan Rajlich wrote: > I'd be more inclined to just remove it. Use fs.stat() instead, or even > better just *do* whatever it is with the file that you're trying to > do. Checking for file "existence" is an anti-pattern. > > On Sun, Aug 19, 2012 at 4:04 AM, Bruno Jouhier <bjouh...@gmail.com> wrote: > > +1. > > > > It already got moved from "path" to "fs" and people did adjust to the > > change. Why not shake it one more time and fix it (or remove it)? > > > > > > On Sunday, August 19, 2012 12:01:54 PM UTC+2, Robert Gould wrote: > >> > >> Node has broken backwards compatibilty before and will in the futre, why > >> not just deprecate fs.exists and remove it in 0.9? As THE black sheep in > >> node.js it does more hurt by being there, then not being there. Not needed > >> and not much use beyond being an insider joke for people that have been > >> around from the start > > > > -- > > 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 > > -- > 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 > > -- > 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 -- 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