meta language to define forms

Rustom Mody rustompmody at gmail.com
Fri Mar 28 04:44:39 CET 2014


On Friday, March 28, 2014 8:43:21 AM UTC+5:30, Roy Smith wrote:
>  Chris Angelico wrote:
> > Your syntax there looks reasonable already. I'd recommend you make it
> > a flat data file, though, don't try to make it a programming language
> > - unless you actively need it to be one. Here are a couple of ways you
> > could format this. Any would be fairly easy to code a parser for.

> My first impression here is that YAML might work here.

Was going to say yaml would be my first choice.

The only question here is whether to use the full-featured load or safe_load
which only allows builtin types.

In general load allowing calling of arbitrary code is a gaping security hole.
Here it may be the best choice... dunno

Personally I dont like mixing code and data.
Yeah lisp is fun and all that but when it starts getting at all serious
its a bloody mess.

[BTW I consider the windows registry cleaner than the linux /etc for 
the same reason]



More information about the Python-list mailing list