chicken-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Chicken-users] INI files in Scheme? (or something similar)


From: Jean-Philippe Theberge
Subject: Re: [Chicken-users] INI files in Scheme? (or something similar)
Date: Mon, 03 Mar 2008 20:38:59 -0500
User-agent: Mozilla-Thunderbird 2.0.0.9 (X11/20080109)

Hi,

I use parameters for this kind of stuff

(Developer "INSERT_DEV_ID")
(Application "INSERT_APP_ID")
(Certificate "INSERT_CERT_ID")

see: http://www.call-with-current-continuation.org/eggs/miscmacros.html

Hans Nowak wrote:

Hi,

Is there a "standard" way to do INI files (or similar kinds of initialization files, ala .bashrc etc) in Scheme? For example, something like this:

[config.ini]
--->8---
[Keys]
Developer=INSERT_DEV_ID
Application=INSERT_APP_ID
Certificate=INSERT_CERT_ID

[Server]
; This is for the development sandbox
URL=api.sandbox.foobar.com
Directory=/ws/api.dll

[Authentication]
; blah blah blah
Token=INSERT_USER_TOKEN
--->8---


I understand that this could easily be done in Scheme itself, e.g.

(define developer INSERT_DEV_ID)
(define url "api.sandbox.foobar.com")

...and all that, but is that a common way to do it? If not, what is? (I didn't see any eggs dealing with this issue.)

Thanks,

--Hans



_______________________________________________
Chicken-users mailing list
address@hidden
http://lists.nongnu.org/mailman/listinfo/chicken-users




--
BuddyPilots <http://www.buddypilots.com>
*Jean-Philippe Théberge*
*Programmeur Architecte*
Tel: (514) 353-2307







reply via email to

[Prev in Thread] Current Thread [Next in Thread]