Funny enough, I've implemented a config language that fits exactly this bill
https://github.com/gilbert/zamlAn example (also see it in the online editor[0]):
users {
andy
beth {
admin true
}
carl
}
The author is right that you gain syntax benefits when you define a schema. For those who say this adds cognitive overhead, it actually doesn't; the schema and compiler are able to
reduce that overhead, because if you make a mistake, you get a nice, accurate error message.
[0] https://gilbert.github.io/zaml/editor.html#s=N4IgzgxgFgpgtgQ...