49 lines
2.1 KiB
HTML
49 lines
2.1 KiB
HTML
<!DOCTYPE HTML PUBLIC "-//W3O//DTD W3 HTML 2.0//EN">
|
|
<!Originally converted to HTML using LaTeX2HTML 95 (Thu Jan 19 1995) by Nikos Drakos (nikos@cbl.leeds.ac.uk), CBLU, University of Leeds >
|
|
<HEAD>
|
|
<TITLE> A Word about Lisp</TITLE>
|
|
</HEAD>
|
|
<BODY>
|
|
<meta name="description" value=" A Word about Lisp">
|
|
<meta name="keywords" value="lp">
|
|
<meta name="resource-type" value="document">
|
|
<meta name="distribution" value="global">
|
|
<P>
|
|
<BR> <HR>
|
|
<A HREF="node43.html"><IMG ALIGN=BOTTOM ALT="next" SRC="next_motif.gif"></A>
|
|
<A HREF="node41.html"><IMG ALIGN=BOTTOM ALT="up" SRC="up_motif.gif"></A>
|
|
<A HREF="node41.html"><IMG ALIGN=BOTTOM ALT="previous" SRC="previous_motif.gif"></A> <BR>
|
|
<A HREF="lp.html"><B>Contents</B></A>
|
|
<B> Next:</B>
|
|
<A HREF="node43.html"> Recursion on Simple </A>
|
|
<B>Up:</B>
|
|
<A HREF="node41.html"> Programming Techniques</A>
|
|
<B> Previous:</B>
|
|
<A HREF="node41.html"> Programming Techniques</A>
|
|
<BR> <HR> <P>
|
|
<H1> A Word about Lisp</H1>
|
|
<P>
|
|
Lisp was developed as a functional programming language. This means it
|
|
is based on the use of expressions. The readers may be familiar with
|
|
Pascal, C, or FORTRAN, which are all classified as imperative
|
|
programming languages. These languages are statement-oriented, the
|
|
programs consisting of a sequence of statements. Lisp programs,
|
|
as originally defined, were specified entirely as expressions.
|
|
Current day implementations of Lisp, however, have extensions which
|
|
allow Lisp programs to be more statement-oriented.
|
|
At the heart of Lisp is recursion (chapter 3). Due to
|
|
their regular, recursive structure, Lisp programs tend to be short and
|
|
elegant. But also, to be able to program effectively in Lisp, a
|
|
different kind of thinking is required; one must learn to think
|
|
recursively. This is very different from statement-oriented thinking
|
|
required for languages such as Pascal, C, or FORTRAN. A few simple
|
|
rules presented in the next few sections will help the reader to think
|
|
recursively and create better Lisp programs.
|
|
<P>
|
|
<BR> <HR>
|
|
<P>
|
|
<ADDRESS>
|
|
<I>© Colin Allen & Maneesh Dhagat <BR>
|
|
March 2007 </I>
|
|
</ADDRESS>
|
|
</BODY>
|