From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Romel Sandoval Newsgroups: gmane.lisp.guile.user Subject: Re: Data Dictionary and Configuration Files with Guile Scheme Date: Wed, 18 Aug 2010 12:38:39 -0500 Message-ID: <1282153119.2997.42.camel@romel-compaq> References: <1281028544.2624.38.camel@romel-compaq> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1282153149 4274 80.91.229.12 (18 Aug 2010 17:39:09 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 18 Aug 2010 17:39:09 +0000 (UTC) Cc: guile-user@gnu.org To: Andy Wingo Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Wed Aug 18 19:39:06 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 1OlmbS-0005Yw-5g for guile-user@m.gmane.org; Wed, 18 Aug 2010 19:39:06 +0200 Original-Received: from localhost ([127.0.0.1]:52469 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OlmbR-0003jl-J5 for guile-user@m.gmane.org; Wed, 18 Aug 2010 13:39:05 -0400 Original-Received: from [140.186.70.92] (port=48405 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OlmbI-0003j2-Ui for guile-user@gnu.org; Wed, 18 Aug 2010 13:39:01 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OlmbC-0006pG-Qn for guile-user@gnu.org; Wed, 18 Aug 2010 13:38:56 -0400 Original-Received: from karen.lavabit.com ([72.249.41.33]:46793) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OlmbC-0006p3-Nm for guile-user@gnu.org; Wed, 18 Aug 2010 13:38:50 -0400 Original-Received: from d.earth.lavabit.com (d.earth.lavabit.com [192.168.111.13]) by karen.lavabit.com (Postfix) with ESMTP id 17DDD11B8CB; Wed, 18 Aug 2010 12:38:47 -0500 (CDT) Original-Received: from 148.209.128.70 (dsl-201-155-81-234-sta.prod-empresarial.com.mx [201.155.81.234]) by lavabit.com with ESMTP id K8XTP9BSAR80; Wed, 18 Aug 2010 12:38:47 -0500 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=lavabit; d=lavabit.com; b=GNIhPV8GWr9hUgRzSyBSBO2YSf3errx2HlqiskBJU27StUTm1DRuI2XyYqQvHk9cEcx8swEttzUuwlKEfbF6xkMV2nRHg1pUprNqEjrXuCE0g/7YpYUBOU7e2V0DPPLvQI3Ee+myT9Bvk+ylp9nSXRHe8AQehQDvInPn2B7ka/s=; h=Subject:From:To:Cc:In-Reply-To:References:Content-Type:Date:Message-ID:Mime-Version:X-Mailer:Content-Transfer-Encoding; In-Reply-To: X-Mailer: Evolution 2.28.1 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) 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:8083 Archived-At: El mi=C3=A9, 18-08-2010 a las 09:05 -0700, Andy Wingo escribi=C3=B3: > On Thu 05 Aug 2010 10:15, Romel Sandoval writes: >=20 > > 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 afte= r a > > load I will have the data structure ready to work with it. >=20 > 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 has= h > tables and records also. Or myriad other data structures. Read > http://mitpress.mit.edu/sicp/, especially the chapters on data > abstraction and state. Now I see. Thanks. >=20 > But above all, don't take your data structure advice from anyone who > mentions SQL :) The problem it's that I haven't found any alternative to SQL :-( So I'm trying to manage the problem. SQL alternative?... Anyone? Romel