[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: `append' vs. `nconc'
From: |
Pascal J. Bourguignon |
Subject: |
Re: `append' vs. `nconc' |
Date: |
Thu, 31 Dec 2015 06:37:24 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) |
Emanuel Berg <embe8573@student.uu.se> writes:
> Teemu Likonen <tlikonen@iki.fi> writes:
>
>> Don't modify a list created with '(...). Use (list
>> ...) instead.
>
> What about the elements of the lists? If they are
> themselves lists, can they be created with ' or is
> this rule a "recursive descent" one?
You must remember the literal/immutable status of each item at each
level.
Since you are incapable of remembering it, you should assume that the
whole input data is immutable and write purely functional code (ie. use
append, not nconc) in general.
--
__Pascal Bourguignon__ http://www.informatimago.com/
“The factory of the future will have only two employees, a man and a
dog. The man will be there to feed the dog. The dog will be there to
keep the man from touching the equipment.” -- Carl Bass CEO Autodesk
- Re: Error: Setting the shell in sh-mode via a local variable does not work, (continued)
- Re: Error: Setting the shell in sh-mode via a local variable does not work, Teemu Likonen, 2015/12/30
- `append' vs. `nconc' (was: Re: Error: Setting the shell in sh-mode via a local variable does not work), Emanuel Berg, 2015/12/30
- Re: `append' vs. `nconc', Teemu Likonen, 2015/12/30
- Re: `append' vs. `nconc', Emanuel Berg, 2015/12/30
- Message not available
- Re: `append' vs. `nconc', Pascal J. Bourguignon, 2015/12/30
- Re: `append' vs. `nconc', Emanuel Berg, 2015/12/30
- Re: `append' vs. `nconc', tomas, 2015/12/31
- Re: `append' vs. `nconc', Emanuel Berg, 2015/12/31
- Message not available
- Re: `append' vs. `nconc', Pascal J. Bourguignon, 2015/12/31
- Re: `append' vs. `nconc', Emanuel Berg, 2015/12/30
- Message not available
- Re: `append' vs. `nconc',
Pascal J. Bourguignon <=
- Re: `append' vs. `nconc', Emanuel Berg, 2015/12/31
- Re: `append' vs. `nconc', tomas, 2015/12/31
- side effects, list sharing [was: `append' vs. `nconc'], Drew Adams, 2015/12/31
- Re: side effects, list sharing [was: `append' vs. `nconc'], Emanuel Berg, 2015/12/31
- RE: side effects, list sharing [was: `append' vs. `nconc'], Drew Adams, 2015/12/31
- Re: `append' vs. `nconc', Emanuel Berg, 2015/12/31
- Message not available
- Re: `append' vs. `nconc', Barry Margolin, 2015/12/31
- Message not available
- Re: `append' vs. `nconc', Pascal J. Bourguignon, 2015/12/31
- Message not available
- Re: `append' vs. `nconc', Teemu Likonen, 2015/12/31
- Re: `append' vs. `nconc', Emanuel Berg, 2015/12/31