[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How to quote a list of functions?
From: |
Emanuel Berg |
Subject: |
Re: How to quote a list of functions? |
Date: |
Mon, 17 Aug 2015 02:34:35 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux) |
"Pascal J. Bourguignon" <pjb@informatimago.com>
writes:
> It's quite simple.
>
> When you want a function given a name, you use
> (function NAME) or #'NAME which reads equally.
>
> When you want a symbol, you use (quote SYMBOL) or
> 'SYMBOL which reads equally.
>
> Accidentally, on the current GNU emacs lisp
> implementation, (function X) and (quote X) return
> the same thing, the symbol X,
Why is the distinction important to uphold (on the
level of the programmer)?
Even more so, as sometimes (when?) functions should
not be denoted functions but symbols - as the example
with `put' had it.
> so if you make a mistake ... and if you make the
> opposite mistake ...
If I use `quote' in both cases, and it works, I don't
see that as a mistake in either case, actually I see
that as much *less* error-prone than each time
considering if the sharp quote should be used. It is
much better I let the computer sort that out.
--
underground experts united
http://user.it.uu.se/~embe8573
- Re: How to quote a list of functions?, (continued)
- Message not available
- Re: How to quote a list of functions?, Pascal J. Bourguignon, 2015/08/13
- Re: How to quote a list of functions?, Emanuel Berg, 2015/08/13
- Re: How to quote a list of functions?, John Mastro, 2015/08/13
- Re: How to quote a list of functions?, Emanuel Berg, 2015/08/14
- Re: How to quote a list of functions?, John Mastro, 2015/08/15
- Re: How to quote a list of functions?, Emanuel Berg, 2015/08/16
- Re: How to quote a list of functions?, Pascal J. Bourguignon, 2015/08/16
- Re: How to quote a list of functions?,
Emanuel Berg <=
- Message not available
- Re: How to quote a list of functions?, Pascal J. Bourguignon, 2015/08/16
- Re: How to quote a list of functions?, Emanuel Berg, 2015/08/16
- Message not available
- Re: How to quote a list of functions?, Barry Margolin, 2015/08/16
- Re: How to quote a list of functions?, Pascal J. Bourguignon, 2015/08/16
- Re: How to quote a list of functions?, Emanuel Berg, 2015/08/17
- Message not available
- Re: How to quote a list of functions?, Pascal J. Bourguignon, 2015/08/17
- Re: How to quote a list of functions?, Emanuel Berg, 2015/08/18
- Message not available
- Re: How to quote a list of functions?, Pascal J. Bourguignon, 2015/08/16
- Re: How to quote a list of functions?, Emanuel Berg, 2015/08/17
- RE: How to quote a list of functions?, Drew Adams, 2015/08/18