[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How to quote a list of functions?
From: |
Pascal J. Bourguignon |
Subject: |
Re: How to quote a list of functions? |
Date: |
Tue, 18 Aug 2015 13:18:59 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) |
Marcin Borkowski <mbork@mbork.pl> writes:
> On 2015-08-18, at 03:03, Emanuel Berg <embe8573@student.uu.se> wrote:
>
>> <tomas@tuxteam.de> writes:
>>
>>> Not to forget: different name spaces for functions
>>> and variables. That's the LISP-2's and that's what
>>> LISP-2 users expect (they will call a variable
>>> "list" without fear of shadowing their function
>>> named "list"). LISP-1 folks (e.g. Schemers) will
>>> shudder at this thought.
>>>
>>> Which one is "better" is just a matter of taste,
>>> I think.
>>
>> I don't think it is a good idea to have variables and
>> functions share names, just like I don't think it is
>> a good idea to have one variable called HELP, one
>> help, another Help, etc. Just because it is possible
>> doesn't make it a good ide.
>
> Mhm. Imagine that you write a function operating on (general) lists
> (like `car'). (There are plenty of Lisp functions acting on lists as
> such, some of them not implemented in Elisp, so you might want to write
> one yourself in real life.)
>
> Now, what would you call the argument of such function, given that
> `list' is a Lisp function?
There are plenty of conventions. In non-lisp prefixing such generic
parameter name with "a" or "an" is often seen.
-[firstElementOf:(id)aList];
-[appendList:(id)aList withList:(id)anotherList];
--
__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: How to quote a list of functions?, (continued)
- Re: How to quote a list of functions?, Emanuel Berg, 2015/08/23
- Re: How to quote a list of functions?, Emanuel Berg, 2015/08/23
- Message not available
- Re: How to quote a list of functions?, Pascal J. Bourguignon, 2015/08/23
- Re: How to quote a list of functions?, Emanuel Berg, 2015/08/24
- Re: How to quote a list of functions?, Emanuel Berg, 2015/08/24
- Message not available
- Re: How to quote a list of functions?, Pascal J. Bourguignon, 2015/08/24
- Re: How to quote a list of functions?, Emanuel Berg, 2015/08/24
- Message not available
- Re: How to quote a list of functions?, Pascal J. Bourguignon, 2015/08/24
- Re: How to quote a list of functions?, Emanuel Berg, 2015/08/19
- Re: How to quote a list of functions?, tomas, 2015/08/18
- Message not available
- Re: How to quote a list of functions?,
Pascal J. Bourguignon <=
- Message not available
- Re: How to quote a list of functions?, Pascal J. Bourguignon, 2015/08/14
- Re: How to quote a list of functions?, Emanuel Berg, 2015/08/14
Re: How to quote a list of functions?, Pascal J. Bourguignon, 2015/08/08
Re: How to quote a list of functions?, Marcin Borkowski, 2015/08/09