Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!cs.utexas.edu!uunet!mcsun!ukc!edcastle!aiai!jeff From: jeff@aiai.ed.ac.uk (Jeff Dalton) Newsgroups: comp.lang.lisp Subject: Re: Adding items to the end of a list. Message-ID: <3372@skye.ed.ac.uk> Date: 5 Sep 90 21:21:46 GMT References: <1990Sep5.011910.1177@mentor.com> Reply-To: jeff@aiai.UUCP (Jeff Dalton) Organization: AIAI, University of Edinburgh, Scotland Lines: 15 In article <1990Sep5.011910.1177@mentor.com> plogan@mentor.com (Patrick Logan) writes: >I see a lot of LISP code building lists backwards and then reversing >them. I don't know if I've ever seen any C code doing that. Is it too >easy to write sloppy code in LISP? I don't think it is any more >difficult to write efficient list manipulations in Scheme than it is >in C. How soon they forget. What do you think `tconc' (Interlisp, Franz Lisp, etc.) was for? For a more modern approach, look at Appendix B, "Generators and Gatherers" in Guy Steele Jr.'s CLtL II. (It's similar to your object-oriented technique.) -- Jeff