From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Daniel Skarda <0rfelyus@ucw.cz> Newsgroups: gmane.lisp.guile.user Subject: Re: argz SMOB Date: Fri, 09 Jan 2004 15:08:12 +0100 Sender: guile-user-bounces+guile-user=m.gmane.org@gnu.org Message-ID: References: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1073713759 20171 80.91.224.253 (10 Jan 2004 05:49:19 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 10 Jan 2004 05:49:19 +0000 (UTC) Cc: guile-user@gnu.org Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Sat Jan 10 06:49:15 2004 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1AfBzn-00021G-00 for ; Sat, 10 Jan 2004 06:49:15 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.24) id 1AeyEa-0004kk-Dc for guile-user@m.gmane.org; Fri, 09 Jan 2004 10:07:36 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24) id 1AeyE3-0004jM-OB for guile-user@gnu.org; Fri, 09 Jan 2004 10:07:03 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24) id 1AeyDX-0004bE-9q for guile-user@gnu.org; Fri, 09 Jan 2004 10:07:02 -0500 Original-Received: from [130.244.199.132] (helo=fep04-svc.swip.net) by monty-python.gnu.org with esmtp (Exim 4.24) id 1AeyDW-0004a5-8s for guile-user@gnu.org; Fri, 09 Jan 2004 10:06:30 -0500 Original-Received: from localhost ([213.102.39.176]) by fep04-svc.swip.net with ESMTP id <20040109140458.MQEW2375.fep04-svc.swip.net@localhost>; Fri, 9 Jan 2004 15:04:58 +0100 Original-Received: from 0rfelyus by localhost with local (Exim 3.36 #1 (Debian)) id 1AexJ6-0000FA-00; Fri, 09 Jan 2004 15:08:12 +0100 Original-To: Brian S McQueen In-Reply-To: (Brian S. McQueen's message of "Thu, 8 Jan 2004 08:44:10 -0800 (PST)") User-Agent: Gnus/5.1002 (Gnus v5.10.2) Emacs/20.7 (gnu/linux) X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-user-bounces+guile-user=m.gmane.org@gnu.org Xref: main.gmane.org gmane.lisp.guile.user:2566 X-Report-Spam: http://spam.gmane.org/gmane.lisp.guile.user:2566 > I have several libraries in use here which make database queries, > returning all the results in an argz (actually as an envz). I wanted to > be able to tweak anything via guile. So I added guile to the project, > giving me the ability to tweak from a script file without recompiling. Before I sent you my message, I read argz/envz description in libc reference manual and wondered why anybody would like to use such strange data structure. (which I still do not understand :) IMHO it would be better to convert output from your database queries to lists of strings and symbols (or alists in case of envz). They are more "natural" and "convenient" way for data representation in Scheme/Lisp and for processing results you can use tools already present in Guile (for-each, map, fold, ...) instead of reinventing your own for argz/envz SMOBS. 0. _______________________________________________ Guile-user mailing list Guile-user@gnu.org http://mail.gnu.org/mailman/listinfo/guile-user