From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Clinton Ebadi Newsgroups: gmane.lisp.guile.user Subject: Re: References/locations Date: Fri, 15 Aug 2008 09:55:45 -0400 Message-ID: <87bpzu1ixq.fsf@unknownlamer.org> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1218808528 26548 80.91.229.12 (15 Aug 2008 13:55:28 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 15 Aug 2008 13:55:28 +0000 (UTC) Cc: guile-user@gnu.org, "Kjetil S. Matheussen" To: "Maciek Godek" Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Fri Aug 15 15:56:20 2008 Return-path: Envelope-to: guile-user@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1KTzms-00029y-KF for guile-user@m.gmane.org; Fri, 15 Aug 2008 15:56:18 +0200 Original-Received: from localhost ([127.0.0.1]:37111 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KTzlv-0005IF-Rr for guile-user@m.gmane.org; Fri, 15 Aug 2008 09:55:19 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KTzlr-0005IA-Ib for guile-user@gnu.org; Fri, 15 Aug 2008 09:55:15 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KTzlq-0005Hy-3S for guile-user@gnu.org; Fri, 15 Aug 2008 09:55:15 -0400 Original-Received: from [199.232.76.173] (port=51412 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KTzlp-0005Hv-VP for guile-user@gnu.org; Fri, 15 Aug 2008 09:55:13 -0400 Original-Received: from deleuze.hcoop.net ([69.90.123.67]:39718) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KTzlp-0001B3-J2 for guile-user@gnu.org; Fri, 15 Aug 2008 09:55:13 -0400 Original-Received: from cpe-071-065-238-103.nc.res.rr.com ([71.65.238.103] helo=localhost.localdomain) by deleuze.hcoop.net with esmtpsa (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.63) (envelope-from ) id 1KTzln-0002vQ-0j; Fri, 15 Aug 2008 09:55:11 -0400 In-Reply-To: (Maciek Godek's message of "Fri\, 15 Aug 2008 12\:14\:05 +0200") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.2 (gnu/linux) X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 1) X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: guile-user-bounces+guile-user=m.gmane.org@gnu.org Errors-To: guile-user-bounces+guile-user=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.user:6750 Archived-At: "Maciek Godek" writes: > I've been thinking of implementing this "location" stuff > as a smob, but you've got the point that it is (probably) > impossible to implement the location system without > redefining set! and define. You may want to read a few documents on functional programming to see why your locations concept is not good. There are a number of additional issues as well: one that comes to mind is the interaction of the garbage collector with pointers into the middle of a vector. What is so wrong with forms like `(set! (vector-ref foo index) ...)'? It's generally bad practice to go around destructively modifying data structures anyway. -- Corinne: this is why we should have designated bath buddies Corinne: to get places you cant reach because youre slippery and in case you get a lil tooo slippery and crack your head open someone can call the coast guard and save you