From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Random832 Newsgroups: gmane.emacs.help Subject: Re: why are there [v e c t o r s] in Lisp? Date: Thu, 15 Oct 2015 22:29:02 -0400 Message-ID: <87mvvjzgup.fsf@fastmail.com> References: <87mvvjeg29.fsf@kuiper.lan.informatimago.com> <87io67pmr7.fsf@debian.uxu> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1444962593 27196 80.91.229.3 (16 Oct 2015 02:29:53 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 16 Oct 2015 02:29:53 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Oct 16 04:29:44 2015 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Zmum2-0001dU-Gd for geh-help-gnu-emacs@m.gmane.org; Fri, 16 Oct 2015 04:29:38 +0200 Original-Received: from localhost ([::1]:50504 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zmum1-0003iA-Ox for geh-help-gnu-emacs@m.gmane.org; Thu, 15 Oct 2015 22:29:37 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39329) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zmulp-0003i5-Qg for help-gnu-emacs@gnu.org; Thu, 15 Oct 2015 22:29:26 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Zmulk-0005qM-Qy for help-gnu-emacs@gnu.org; Thu, 15 Oct 2015 22:29:25 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:50572) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zmulk-0005pv-Jl for help-gnu-emacs@gnu.org; Thu, 15 Oct 2015 22:29:20 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1Zmulh-0001J6-VM for help-gnu-emacs@gnu.org; Fri, 16 Oct 2015 04:29:18 +0200 Original-Received: from c-68-39-146-59.hsd1.in.comcast.net ([68.39.146.59]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 16 Oct 2015 04:29:17 +0200 Original-Received: from random832 by c-68-39-146-59.hsd1.in.comcast.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 16 Oct 2015 04:29:17 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 12 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: c-68-39-146-59.hsd1.in.comcast.net User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) Cancel-Lock: sha1:9lLK4HKooh+wn3To9jrQhtatLe8= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:107667 Archived-At: Emanuel Berg writes: > ... why? If lists are vectors, which they are in terms > of what they hold and how they look, then you don't > need more code compared to vectors, on the contrary > you need less code! The thing is, a vector in elisp terms is a specific type of object. It's in contiguous memory, and you can't take its cdr. It is an array whereas a list is a linked list. Maybe in some platonic ideal lisp there wouldn't be a difference, but in elisp there is.