unofficial mirror of guile-user@gnu.org 
 help / color / mirror / Atom feed
From: Andy Wingo <wingo@pobox.com>
To: Romel Sandoval <romel@lavabit.com>
Cc: guile-user@gnu.org
Subject: Re: Data Dictionary and Configuration Files with Guile Scheme
Date: Wed, 18 Aug 2010 09:05:43 -0700	[thread overview]
Message-ID: <m3r5hvvrc8.fsf@unquote.localdomain> (raw)
In-Reply-To: <1281028544.2624.38.camel@romel-compaq> (Romel Sandoval's message of "Thu, 05 Aug 2010 12:15:44 -0500")

On Thu 05 Aug 2010 10:15, Romel Sandoval <romel@lavabit.com> 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/



  parent reply	other threads:[~2010-08-18 16:05 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-08-05 17:15 Data Dictionary and Configuration Files with Guile Scheme Romel Sandoval
2010-08-05 21:04 ` No Itisnt
2010-08-18 16:05 ` Andy Wingo [this message]
2010-08-18 17:38   ` Romel Sandoval
2010-08-18 18:20 ` Thien-Thi Nguyen
2010-08-20 14:10   ` Romel Sandoval
2010-08-20 14:39     ` Thien-Thi Nguyen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/guile/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m3r5hvvrc8.fsf@unquote.localdomain \
    --to=wingo@pobox.com \
    --cc=guile-user@gnu.org \
    --cc=romel@lavabit.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).