From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Andy Wingo Newsgroups: gmane.lisp.guile.user Subject: Re: Data Dictionary and Configuration Files with Guile Scheme Date: Wed, 18 Aug 2010 09:05:43 -0700 Message-ID: References: <1281028544.2624.38.camel@romel-compaq> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1282147695 12893 80.91.229.12 (18 Aug 2010 16:08:15 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 18 Aug 2010 16:08:15 +0000 (UTC) Cc: guile-user@gnu.org To: Romel Sandoval Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Wed Aug 18 18:08:13 2010 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.69) (envelope-from ) id 1OllBR-0002Av-2v for guile-user@m.gmane.org; Wed, 18 Aug 2010 18:08:13 +0200 Original-Received: from localhost ([127.0.0.1]:55341 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OllBM-0002kt-R6 for guile-user@m.gmane.org; Wed, 18 Aug 2010 12:08:04 -0400 Original-Received: from [140.186.70.92] (port=43388 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Oll6B-00088A-2M for guile-user@gnu.org; Wed, 18 Aug 2010 12:02:49 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Oll65-000185-W6 for guile-user@gnu.org; Wed, 18 Aug 2010 12:02:42 -0400 Original-Received: from a-pb-sasl-quonix.pobox.com ([208.72.237.25]:46047 helo=sasl.smtp.pobox.com) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Oll65-00017u-Sg for guile-user@gnu.org; Wed, 18 Aug 2010 12:02:37 -0400 Original-Received: from sasl.smtp.pobox.com (unknown [127.0.0.1]) by a-pb-sasl-quonix.pobox.com (Postfix) with ESMTP id 40ECACE20E; Wed, 18 Aug 2010 12:02:37 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=pobox.com; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type; s=sasl; bh=5cKNEsXHvYJ8gml5jBuzHJ/nH9U=; b=K9qeZS JddYnd1VqMDELuke/XuHqlhjUKTfF6MAK/xK77ohT+AacrYqLZmPiHkHA5BUNTK8 NLWjgB1BOzkHLzMFoaQbMcvYn1sjU/fNmNKXap9vc8RE1XWRLIyzk2ssw3d2hGHX hLRnGtzLeRJ3OkcfaFLblMe81wKb2AWoH0QJA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=pobox.com; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type; q=dns; s=sasl; b=ZMw+bUvSuD89M4BnPZWinI1ISyMkx02/ rpwJPMwkBR2mb/eAybUSQtrBdje7iOocQ8TCAXGpN3xu40V3or4uYS+7o1oIV5a1 ZbVuur+xwIKpjhOqWmMYJiKlRwugxRi2+EipkYxzCU7PBQrSTAaUr0R5j1fUuNPs gP99480B9p0= Original-Received: from a-pb-sasl-quonix. (unknown [127.0.0.1]) by a-pb-sasl-quonix.pobox.com (Postfix) with ESMTP id 2D128CE20D; Wed, 18 Aug 2010 12:02:36 -0400 (EDT) Original-Received: from unquote.localdomain (unknown [75.16.62.19]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by a-pb-sasl-quonix.pobox.com (Postfix) with ESMTPSA id B1F8BCE20C; Wed, 18 Aug 2010 12:02:34 -0400 (EDT) In-Reply-To: <1281028544.2624.38.camel@romel-compaq> (Romel Sandoval's message of "Thu, 05 Aug 2010 12:15:44 -0500") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux) X-Pobox-Relay-ID: 04A3A22E-AAE2-11DF-BD93-9056EE7EF46B-02397024!a-pb-sasl-quonix.pobox.com X-detected-operating-system: by eggs.gnu.org: Solaris 10 (beta) 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:8079 Archived-At: On Thu 05 Aug 2010 10:15, Romel Sandoval writes: > I'm trying to create a data dictionary [1] to generate code from it. [...] > This way I can write s-exp as in the example *projects-table* an after a > load I will have the data structure ready to work with it. I think you are quite confused :) Use procedures, not macros. If you really want to use s-expressions, use alists and define accessor procedures, and be sure not to mutate literal values. You could use hash tables and records also. Or myriad other data structures. Read http://mitpress.mit.edu/sicp/, especially the chapters on data abstraction and state. But above all, don't take your data structure advice from anyone who mentions SQL :) Andy -- http://wingolog.org/