Sadly, list of elements in textproto, being repeated items, appear repeated, which isn’t great.
grocery_list {
fruits: "apple"
fruits: "banana"
fruits: "pear"
} grocery_list {
fruits: [ "apple", "banana", "pear" ]
} (grocery_list
(fruit "apple")
(fruit "banana")
(fruit "pear"))
That's pretty much exactly XML. Alternatively: (grocery_list
(fruits "apple" "banana" "pear"))
but the semantics are different.My motivation is expressing docker-compose.yaml in the "best" way I can imagine, as a design exercise. In that case, I'd rather have a bunch of (service ...) forms, instead of a "services" object. Not sure why. Maybe it's a pun on interpreter-driven formats like that used by [guix][1].
[1]: https://guix.gnu.org/manual/en/html_node/Shepherd-Services.h...
Haha, what?