From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Barry Margolin Newsgroups: gmane.emacs.help Subject: Re: why are there [v e c t o r s] in Lisp? Date: Sat, 17 Oct 2015 01:56:31 -0400 Organization: A noiseless patient Spider Message-ID: References: <87mvvjeg29.fsf@kuiper.lan.informatimago.com> <87eggvebfs.fsf@kuiper.lan.informatimago.com> <87pp0eckss.fsf@kuiper.lan.informatimago.com> NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1445061628 26047 80.91.229.3 (17 Oct 2015 06:00:28 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 17 Oct 2015 06:00:28 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Oct 17 08:00:27 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 1ZnKXY-0004eR-G4 for geh-help-gnu-emacs@m.gmane.org; Sat, 17 Oct 2015 08:00:24 +0200 Original-Received: from localhost ([::1]:57137 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZnKXX-00012q-Hs for geh-help-gnu-emacs@m.gmane.org; Sat, 17 Oct 2015 02:00:23 -0400 Original-Path: usenet.stanford.edu!news.kjsl.com!feeder.erje.net!us.feeder.erje.net!newsfeed.fsmpi.rwth-aachen.de!newsfeed.straub-nv.de!eternal-september.org!feeder.eternal-september.org!mx02.eternal-september.org!barmar.motzarella.org!.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 30 Injection-Info: barmar.motzarella.org; posting-host="2be9e9f5dd9af768b8861af71b85fc28"; logging-data="4607"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19PtP9yvYoPpZ9q+vmm1BnE" User-Agent: MT-NewsWatcher/3.5.3b3 (Intel Mac OS X) Cancel-Lock: sha1:B4q37uyeZtTAnAAT2Ddpl7e009A= Original-Xref: usenet.stanford.edu gnu.emacs.help:215414 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:107699 Archived-At: In article <87pp0eckss.fsf@kuiper.lan.informatimago.com>, "Pascal J. Bourguignon" wrote: > Emanuel Berg writes: > > Why the syntax is there at all is to provide fast > > (faster) access to the vector data type which has > > other time and space properties than do lists. > > ABSOLUTELY NOT. > > For example, in C++ you have vectors and lists, > but you don't have any literal syntax for them. > > You can have fast and slow data structures without having any literal > syntax for it. > > > Why do you keep confusing the two concepts? When he said "faster access", I think he just meant that the syntax makes it more convenient to use them, not that the code runs faster. Like the way Javascript's object literals make it very easy to use them to implement named options to functions, rather than putting this into the basic argument processing syntax like Lisp and Python do. -- Barry Margolin, barmar@alum.mit.edu Arlington, MA *** PLEASE post questions in newsgroups, not directly to me ***