Hacker News new | past | comments | ask | show | jobs | submit login

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.h...




> That's pretty much exactly XML

Haha, what?




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: