From: Stefan Monnier <monnier@iro.umontreal.ca>
To: emacs-devel@gnu.org
Subject: Re: Terminology question
Date: Wed, 27 Apr 2016 08:46:42 -0400 [thread overview]
Message-ID: <jwv60v3b4zn.fsf-monnier+gmane.emacs.devel@gnu.org> (raw)
In-Reply-To: m2oa8wifxq.fsf@newartisans.com
> A "form" is a piece of data in Lisp that represents a program, meaning it can
> be evaluated without error.
I'd rather agree with Richard that the issue is not whether it can be
evaluated without error, but whether it is intended for evaluation.
E.g. if you consider
(let ((x 1)) (+ x 4))
and
(1 2 3 4 5)
both of those objects are sexps (which I take to mean "the abstract
representation of structured data"), and might be treated as "nothing
more than sexps" (i.e. as data).
Given their shapes, if I had to guess, I'd say that the first is likely
to be a form while the second is likely not to be a form.
This is very closely related to the difference between XML and HTML:
Ignoring the info you get from the namespacing, which basically gives
you a hint about the intention, any XML tree can be considered as
a (potentially invalid) HTML document. So "sexp" is basically the same
as "XML", and "form" corresponds to "HTML".
Stefan
next prev parent reply other threads:[~2016-04-27 12:46 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-04-26 10:20 Terminology question Jean-Christophe Helary
2016-04-26 14:48 ` John Wiegley
2016-04-27 4:05 ` Jean-Christophe Helary
2016-04-27 12:46 ` Stefan Monnier [this message]
2016-04-27 1:58 ` Richard Stallman
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=jwv60v3b4zn.fsf-monnier+gmane.emacs.devel@gnu.org \
--to=monnier@iro.umontreal.ca \
--cc=emacs-devel@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.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.