[dmd-beta] D 2.062 beta

Nick Sabalausky bus_dmdbeta at semitwist.com
Thu Feb 14 13:39:34 PST 2013


On Thu, 14 Feb 2013 20:39:33 +0100
Jacob Carlborg <doob at me.com> wrote:

> 
> On 13 feb 2013, at 21:53, Nick Sabalausky <bus_dmdbeta at semitwist.com>
> wrote:
> 
> > IMO, SDL (Simple Declarative Language, not Simple DirectMedia Layer)
> > beats the heck out of even YAML:
> > http://sdl.ikayzo.org/display/SDL/Home
> > 
> > It's just trivially simple and obvious with no syntactic noise. I
> > had been a proponent of YAML, but my interest in it died completely
> > after discovering SDL. YAML has less syntactic noise than JSON, but
> > it's kinda complicated. I had started writing a D version of SDL
> > last year but then got distracted. Definitely want to get back to
> > it though.
> 
> 
> After a quick glance at that page it looks more complicated than
> JSON. I would consider YAML less complicated than JSON.
> 

It's actually very simple. Everything is a tag, which is basically of
the form:

[namespace:]name [values] [attributes of the form name=value] [{
    children
}]

A basic ini-style list of names/values is just:

first "Joe"
last "Smith"
age 17
addr "123 Road St."

This page is probably a better intro:
http://sdl.ikayzo.org/display/SDL/Language+Guide


More information about the dmd-beta mailing list