On Fri, Aug 19, 2016 at 3:51 PM, bep <bjorn.erik.peder...@gmail.com> wrote: > > I had this discussion with another Gopher about the difference between Delete > and Remove. > > I found this definition which I agree on: > > "Delete and remove are defined quite similarly, but the main difference > between them is that delete means erase (i.e. rendered nonexistent or > nonrecoverable), while remove connotes take away and set aside (but kept in > existence)." > > > > Translated to computer terms, remove would be to flag it/hide it, while > delete would be to delete it from disk/erease it. > > But then he mentioned: > > https://golang.org/pkg/os/#Remove > > I don't expect the os.Remove* funcs to ever be renamed, but wouldn't it be > more precise if they were named os.Delete etc.?
The function `os.Remove` does the same thing as the ISO C and POSIX function `remove` (http://pubs.opengroup.org/onlinepubs/009695399/functions/remove.html). Perhaps the name Remove is a mistake, but it's a long-standing one. Ian -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.