# Yaml-exp - Write s-expressions in YAML

**URL:** <https://racket.discourse.group/t/yaml-exp-write-s-expressions-in-yaml/2398>\
**Category:** Show & Tell\
**Created:** [October 18, 2023, 1:49am UTC](https://racket.discourse.group/t/yaml-exp-write-s-expressions-in-yaml/2398 "2023-10-18T01:49:29Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Eutro](https://yyz2.discourse-cdn.com/free1/user_avatar/racket.discourse.group/eutro/32/2275_2.png) [@Eutro](https://racket.discourse.group/u/Eutro)\
**Post date:** [October 18, 2023, 1:49am UTC](https://racket.discourse.group/t/yaml-exp-write-s-expressions-in-yaml/2398/1 "2023-10-18T01:49:29Z")

</div>

Have you ever thought, "I love lisp, but it's just got too many parentheses; it's _too_ well delimited and too unambiguous to read"? Worry no longer, with `yaml-exp` you can have all the benefits of lisp, without having to write a single s-expression!

With `yaml-exp`, instead of using the native s-expression syntax of a language, you can just write YAML instead:

```plaintext
#lang yaml-exp racket/base
- define:
  - fibbi: [x]
  - if:
    - <=:
      - x
      - 1
    - x
    - +:
      - fibbi:
        - -:
          - x
          - 1
      - fibbi:
        - -:
          - x
          - 2
- displayln:
  - fibbi: [10]

```

Try out `yaml-exp` today! [Available in the package catalog.](https://pkgs.racket-lang.org/package/yaml-exp)

---

<div class="post-metadata">

**Author:** ![usao](https://yyz2.discourse-cdn.com/free1/user_avatar/racket.discourse.group/usao/32/1375_2.png) [@usao](https://racket.discourse.group/u/usao)\
**Post date:** [October 18, 2023, 9:26am UTC](https://racket.discourse.group/t/yaml-exp-write-s-expressions-in-yaml/2398/2 "2023-10-18T09:26:32Z")

</div>

Another idea is to use [Shrubbery notation](https://docs.racket-lang.org/shrubbery/index.html)—no, not in the apparent way, but in this cursed way.

---

<div class="post-metadata">

**Author:** ![dehidehidehi](https://yyz2.discourse-cdn.com/free1/user_avatar/racket.discourse.group/dehidehidehi/32/1429_2.png) [@dehidehidehi](https://racket.discourse.group/u/dehidehidehi)\
**Post date:** [October 20, 2023, 2:22pm UTC](https://racket.discourse.group/t/yaml-exp-write-s-expressions-in-yaml/2398/3 "2023-10-20T14:22:13Z")

</div>

Well, thanks to yaml-exp, I love s-exp even more!
