From: Emanuel Berg <embe8573@student.uu.se>
To: help-gnu-emacs@gnu.org
Subject: Re: How to quote a list of functions?
Date: Wed, 19 Aug 2015 02:29:03 +0200 [thread overview]
Message-ID: <87oai4yvcg.fsf@nl106-137-147.student.uu.se> (raw)
In-Reply-To: 87b6cce0-ebe6-400a-b6e9-957e79a66511@default
Drew Adams <drew.adams@oracle.com> writes:
>> when and why are functions refered to not using
>> symbols to designate them?
>
> Anonymous functions.
Those have been mentioned many times by now.
What about them? If you mean lambdas I have used them
for many years with no use of any sharp notation.
> In Emacs Lisp, a named function is named by a symbol.
>
> In Common Lisp, a named function is named by either
> a symbol or a list of the form `(setf SYMBOL)'.
> http://clhs.lisp.se/Body/26_glo_f.htm#function_name
OK?
> A function has other aspects (signature, in
> particular), besides it name.
>
> Just as a symbol has aspects (variable value, plist)
> other than its name and its function value.
>
> What do we "gain" by such distinctions?
>
> The distinctions are not just mental constructs; they
> are real - real distinctions wrt behavior.
It is clear that functions and symbols are different
things but it is not clear what you would gain by
sometimes referring to functions as functions and
sometimes by the symbols denoting them, and it is
especially confusing as the "function as function" way
of referring to them requires a special syntax compared
to referring to everything else in Lisp! And this is
also tedious as every time a function is refered to
you have to verify with the function called what it
expects - a function, or a symbol denoting a function?
If I did this, I would not have any special syntax for
referring to a function, much like I don't want special
syntax for, say, a variable that holds an integer
compared to a variable that holds a string:
(format "%s, you have %d credits on you Galatica Bank account"
s'greeting
i'credits )
Instead, what I would do, I would change the functions
to have verification of input data and act
accordingly, if it received a "function function" or
"function as symbol" - not that that ever matters as
the symbols works just as well, which makes this even
more bizarre a discussion!
Nonetheless, I always want to do things the right way
so I'll change my code. If I find anything apart from
the three cases I've brought to the attention of this
list, I'll mention those as well.
--
underground experts united
http://user.it.uu.se/~embe8573
next prev parent reply other threads:[~2015-08-19 0:29 UTC|newest]
Thread overview: 81+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-08-08 23:42 How to quote a list of functions? Marcin Borkowski
2015-08-08 23:48 ` Dmitry Gutov
2015-08-09 0:09 ` Marcin Borkowski
2015-08-09 6:18 ` Dmitry Gutov
2015-08-09 8:04 ` Marcin Borkowski
[not found] ` <mailman.7992.1439078979.904.help-gnu-emacs@gnu.org>
2015-08-09 0:33 ` Pascal J. Bourguignon
2015-08-09 8:06 ` Marcin Borkowski
[not found] ` <mailman.8016.1439107624.904.help-gnu-emacs@gnu.org>
2015-08-09 10:26 ` Pascal J. Bourguignon
2015-08-09 10:47 ` Marcin Borkowski
[not found] ` <mailman.8020.1439117265.904.help-gnu-emacs@gnu.org>
2015-08-09 11:42 ` Pascal J. Bourguignon
2015-08-09 1:53 ` Emanuel Berg
2015-08-09 8:05 ` Marcin Borkowski
2015-08-09 15:58 ` Emanuel Berg
[not found] ` <mailman.8033.1439136046.904.help-gnu-emacs@gnu.org>
2015-08-10 0:08 ` Barry Margolin
2015-08-10 2:02 ` Ian Zimmerman
2015-08-11 1:06 ` Emanuel Berg
2015-08-11 1:16 ` Emanuel Berg
[not found] ` <mailman.8102.1439255290.904.help-gnu-emacs@gnu.org>
2015-08-11 6:16 ` Barry Margolin
2015-08-12 2:50 ` Emanuel Berg
[not found] ` <mailman.8167.1439348114.904.help-gnu-emacs@gnu.org>
2015-08-12 7:01 ` Barry Margolin
2015-08-13 1:31 ` Emanuel Berg
2015-08-13 1:56 ` Stefan Monnier
2015-08-13 1:59 ` Emanuel Berg
[not found] ` <mailman.8228.1439429711.904.help-gnu-emacs@gnu.org>
2015-08-13 4:20 ` Pascal J. Bourguignon
2015-08-13 23:55 ` Emanuel Berg
2015-08-14 0:38 ` John Mastro
2015-08-15 1:38 ` Emanuel Berg
2015-08-15 21:16 ` John Mastro
2015-08-16 23:56 ` Emanuel Berg
2015-08-17 0:06 ` Pascal J. Bourguignon
2015-08-17 0:34 ` Emanuel Berg
[not found] ` <mailman.8449.1439771796.904.help-gnu-emacs@gnu.org>
2015-08-17 1:19 ` Pascal J. Bourguignon
2015-08-17 1:40 ` Emanuel Berg
[not found] ` <mailman.8450.1439775768.904.help-gnu-emacs@gnu.org>
2015-08-17 2:31 ` Barry Margolin
2015-08-17 3:07 ` Pascal J. Bourguignon
2015-08-18 0:52 ` Emanuel Berg
[not found] ` <mailman.8494.1439859284.904.help-gnu-emacs@gnu.org>
2015-08-18 1:32 ` Pascal J. Bourguignon
2015-08-19 0:11 ` Emanuel Berg
2015-08-17 3:04 ` Pascal J. Bourguignon
2015-08-18 1:00 ` Emanuel Berg
2015-08-18 1:54 ` Drew Adams
2015-08-19 0:29 ` Emanuel Berg [this message]
2015-08-19 0:48 ` Emanuel Berg
2015-08-19 1:37 ` Drew Adams
2015-08-19 21:57 ` Emanuel Berg
[not found] ` <mailman.8599.1439945431.904.help-gnu-emacs@gnu.org>
2015-08-19 1:54 ` Pascal J. Bourguignon
2015-08-19 3:27 ` Stefan Monnier
2015-08-19 11:54 ` Pascal J. Bourguignon
2015-08-19 22:15 ` get all functions (was: Re: How to quote a list of functions?) Emanuel Berg
[not found] ` <mailman.8499.1439873185.904.help-gnu-emacs@gnu.org>
2015-08-18 5:03 ` How to quote a list of functions? Rusi
2015-08-18 10:43 ` Pascal J. Bourguignon
[not found] ` <mailman.8495.1439859773.904.help-gnu-emacs@gnu.org>
2015-08-18 1:43 ` Pascal J. Bourguignon
2015-08-18 23:46 ` Emanuel Berg
[not found] ` <mailman.8448.1439770003.904.help-gnu-emacs@gnu.org>
2015-08-17 0:15 ` Pascal J. Bourguignon
2015-08-17 6:29 ` tomas
2015-08-18 1:03 ` Emanuel Berg
2015-08-18 7:44 ` tomas
2015-08-18 10:51 ` Marcin Borkowski
2015-08-19 0:34 ` Emanuel Berg
2015-08-19 14:22 ` Marcin Borkowski
2015-08-19 20:21 ` tomas
2015-08-21 19:27 ` Emanuel Berg
[not found] ` <mailman.41.1440185412.11330.help-gnu-emacs@gnu.org>
2015-08-21 20:09 ` Pascal J. Bourguignon
2015-08-21 23:38 ` Emanuel Berg
[not found] ` <mailman.49.1440200400.11330.help-gnu-emacs@gnu.org>
2015-08-21 23:46 ` Pascal J. Bourguignon
2015-08-23 21:39 ` Emanuel Berg
2015-08-23 22:16 ` Emanuel Berg
[not found] ` <mailman.147.1440366096.11330.help-gnu-emacs@gnu.org>
2015-08-23 23:59 ` Pascal J. Bourguignon
2015-08-24 0:39 ` Emanuel Berg
2015-08-24 1:42 ` Emanuel Berg
[not found] ` <mailman.1.1440425878.7866.help-gnu-emacs@gnu.org>
2015-08-24 18:42 ` Pascal J. Bourguignon
2015-08-24 19:43 ` Emanuel Berg
[not found] ` <mailman.33.1440446412.28410.help-gnu-emacs@gnu.org>
2015-08-24 23:32 ` Pascal J. Bourguignon
2015-08-19 22:04 ` Emanuel Berg
[not found] ` <mailman.8506.1439895686.904.help-gnu-emacs@gnu.org>
2015-08-18 11:18 ` Pascal J. Bourguignon
[not found] ` <mailman.8299.1439510265.904.help-gnu-emacs@gnu.org>
2015-08-14 7:56 ` Pascal J. Bourguignon
2015-08-15 1:30 ` Emanuel Berg
[not found] <mailman.7990.1439077354.904.help-gnu-emacs@gnu.org>
2015-08-09 0:30 ` Pascal J. Bourguignon
2015-08-09 1:08 ` Michael Heerdegen
[not found] ` <mailman.7994.1439082517.904.help-gnu-emacs@gnu.org>
2015-08-09 1:23 ` Pascal J. Bourguignon
2015-08-09 8:12 ` Marcin Borkowski
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87oai4yvcg.fsf@nl106-137-147.student.uu.se \
--to=embe8573@student.uu.se \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).