help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[OFFTOPIC] Re: Appending lists


From: Stefan Monnier
Subject: [OFFTOPIC] Re: Appending lists
Date: Thu, 17 Jun 2021 08:41:08 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

tomas@tuxteam.de [2021-06-17 09:54:33] wrote:
> On Thu, Jun 17, 2021 at 01:49:21AM +0200, Emanuel Berg via Users list for
> the GNU Emacs text editor wrote:
>> Drew Adams wrote:
>> 
>> >> What's a "deep copy"?
>
> [...]
>
>> deep copy = actual copy
>> 
>> shallow copy = copy of references?
>
> Assignment = copy at depth 0
> Shallow copy = copy at depth 1
> ...
> 42 copy = copy at depth 42
> ...
> Deep copy = copy at depth infinite

In the wonderful world of Haskell, of course, we have

   assignment is not allowed
   copy at depth 0 == copy at depth N == deep copy == no-op


-- Stefan




reply via email to

[Prev in Thread] Current Thread [Next in Thread]