unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* cond & test: if & while
@ 2008-11-25 13:45 aartist
  2008-11-25 14:01 ` Xah Lee
  0 siblings, 1 reply; 2+ messages in thread
From: aartist @ 2008-11-25 13:45 UTC (permalink / raw
  To: help-gnu-emacs

This might be a very basic question, but here it is anyway.
C-h f if
if is a special form in `C source code'.
(if cond then else...)

C-h f while
while is a special form in `C source code'.
(while test body...)

What is the difference between test and condition here for elisp
execution? Is test is a superset of condition?  Is test considered
multiple execution of same condition ?





^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: cond & test: if & while
  2008-11-25 13:45 cond & test: if & while aartist
@ 2008-11-25 14:01 ` Xah Lee
  0 siblings, 0 replies; 2+ messages in thread
From: Xah Lee @ 2008-11-25 14:01 UTC (permalink / raw
  To: help-gnu-emacs

On Nov 25, 5:45 am, aartist <aart...@gmail.com> wrote:
> This might be a very basic question, but here it is anyway.
> C-h f if
> if is a special form in `C source code'.
> (if cond then else...)
>
> C-h f while
> while is a special form in `C source code'.
> (while test body...)
>
> What is the difference between test and condition here for elisp
> execution? Is test is a superset of condition?  Is test considered
> multiple execution of same condition ?

No difference. It just so happens that they used different wording.

if you are just beginning to learn lisp, you might be interested in my
tutorial on my website. Thanks.

  Xah
∑ http://xahlee.org/^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-11-25 14:01 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-11-25 13:45 cond & test: if & while aartist
2008-11-25 14:01 ` Xah Lee

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).