In computer programming, remove means to remove some elements out of many 
elements.
So, here you assume, there are many files in a container and when you you 
remove a file, one file disappears and others remain. The whole container 
remains the same.

delete/erase means to wipe out something completely. delete changes the 
attributes of the container.

These concepts are well implemented in STL.



Warm Regards,
Asit Dhal
http://bit.ly/193ASIT
On 8/20/2016 12:51:52 AM, 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 [http://dictionary.reference.com/browse/delete] and remove 
[http://dictionary.reference.com/browse/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.?

bep

--
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 
[mailto:golang-nuts+unsubscr...@googlegroups.com].
For more options, visit https://groups.google.com/d/optout 
[https://groups.google.com/d/optout].

-- 
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.

Reply via email to