4 ms·
I've been playing with a lispy thing that might be: (grocery_list (fruit "apple") (fruit "banana") (fruit "pear")) That's pretty much ex
by MathMonkeyMan 3y ago
I'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?