]> git.eshelyaron.com Git - emacs.git/commitdiff
entered into RCS
authorRichard M. Stallman <rms@gnu.org>
Tue, 30 Aug 1994 19:32:53 +0000 (19:32 +0000)
committerRichard M. Stallman <rms@gnu.org>
Tue, 30 Aug 1994 19:32:53 +0000 (19:32 +0000)
lispref/tips.texi

index dbb04e071d1595d9b6aa47e525fc94ac592e43f9..482a21afd2331e09cb105cf6a7dd130fc94f921e 100644 (file)
@@ -162,6 +162,15 @@ If you just want to move point, or replace a certain string, without any
 of the other features intended for interactive users, you can replace
 these functions with one or two lines of simple Lisp code.
 
+@item
+Use lists rather than vectors, except when there is a particular reason
+to use a vector.  Lisp has more facilities for manipulating lists than
+for vectors, and working with lists is usually more convenient.
+
+Vectors are advantageous for tables that are substantial in size and are
+accessed in random order (not searched front to back), provided there is
+no need to insert or delete elements (only lists allow that).
+
 @item
 The recommended way to print a message in the echo area is with
 the @code{message} function, not @code{princ}.  @xref{The Echo Area}.