From: Tin Gherdanarra
Subject: Arbitrary nested config data. Lisp > YAML?
Date: 
Message-ID: <41iunfF1f2l7hU1@individual.net>
I have complex requirements for configuration files.
I'm thinking about using Lisp as a configuration language.
I have written a longish proposal (7k) discussing my
idea. Some questions (3 of them) are at the end of the
story).

http://www.angelfire.com/punk/storyofq/storyofq.html

I have set up a webpage on angelfire because I think
7k is too much for usenet. And I can use <h3>,
<em> and <PRE>!

You don't need to reply here, email is welcome.
···········@gmail.com

I have used XML, YAML, key=value, python and .ini-files
for configs in the past, but I think Lisp would serve *everybody*
better than those. Even if my proposal sucks at some
point, I think the overall direction is sound.
What do you think?

Kind regards
Tin

From: Frank Buss
Subject: Re: Arbitrary nested config data. Lisp > YAML?
Date: 
Message-ID: <wcj9bwrq1apn$.pjknxo89qz4i.dlg@40tude.net>
Tin Gherdanarra wrote:

> http://www.angelfire.com/punk/storyofq/storyofq.html

| rplaca blows up the stack if I do the following

CL-USER > (setf *print-circle* t)
T

CL-USER > (defparameter mydict '((a 1) (b 2) (c 3) (__parent__ nil)))
MYDICT

CL-USER > (rplaca (cdr (assoc '__parent__ mydict)) mydict)
#1=(((A 1) (B 2) (C 3) (__PARENT__ . #1#)))

-- 
Frank Bu�, ··@frank-buss.de
http://www.frank-buss.de, http://www.it4-systems.de
From: Tin Gherdanarra
Subject: Re: Arbitrary nested config data. Lisp > YAML?
Date: 
Message-ID: <41j2maF1efbilU1@individual.net>
Frank Buss wrote:
> Tin Gherdanarra wrote:
> 
> 
>>http://www.angelfire.com/punk/storyofq/storyofq.html
> 
> 
> | rplaca blows up the stack if I do the following
> 
> CL-USER > (setf *print-circle* t)
> T

Aha! If that's all there is to it... Thanks! Amazing!

> 
> CL-USER > (defparameter mydict '((a 1) (b 2) (c 3) (__parent__ nil)))
> MYDICT
> 
> CL-USER > (rplaca (cdr (assoc '__parent__ mydict)) mydict)
> #1=(((A 1) (B 2) (C 3) (__PARENT__ . #1#)))
> 

Tip of the propellor hat
Tin