3 ms·
Can you expand on that a little, what do you mean exactly?
by tantalor 3y ago
Can you expand on that a little, what do you mean exactly?
- audiodude 3y agoLike this grocery_list { fruits: "apple" fruits: "banana" fruits: "pear" }
- xyzzy_plugh 3y agoRepeated fields can use the list syntax: grocery_list { fruits: [ "apple", "banana", "pear" ] }
- MathMonkeyMan 3y agoI've been playing with a lispy thing that might be: (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.html https://guix.gnu.org/manual/en/html_node/Shepherd-Services.h...
- tantalor 3y ago> That's pretty much exactly XML Haha, what?
- jiehong 3y agoThank you! Didn’t know that!