[plt-scheme] XML schema equivalent but for scheme s-expressions

From: Marek Kubica (marek at xivilization.net)
Date: Sat Oct 25 14:23:15 EDT 2008

On Sat, 25 Oct 2008 09:47:08 -0500
"Grant Rettke" <grettke at acm.org> wrote:

> On Sat, Oct 25, 2008 at 9:33 AM, Jay McCarthy
> <jay.mccarthy at gmail.com> wrote:
> > Third, sometimes when I want to do this sort of thing, I make the
> > configuration a program that returns a configuration object of my
> > program. Then, PLT Scheme does the work of parsing and validating,
> > etc. But this is not "safe".
> Is it safe if you evalaute it within a limited namespace?

I absolutely understand the concerns about safety, but using Scheme
source has also some big advantages against everything else like ease
of use (debugging, line numbers etc.) as well as flexibility. In
Python-world this is quite common. As long as the program doesn't get
compiled it seems to me a valid choice. With sandboxing it would be
even better.


Posted on the users mailing list.