# Yay fmt ! Title must be 15 chars. Yay Fmt again!

**URL:** https://racket.discourse.group/t/yay-fmt-title-must-be-15-chars-yay-fmt-again/1889
**Category:** General
**Tags:** fmt
**Created:** [April 23, 2023, 6:43pm UTC](https://racket.discourse.group/t/yay-fmt-title-must-be-15-chars-yay-fmt-again/1889 "2023-04-23T18:43:33Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![jbclements](https://yyz2.discourse-cdn.com/free1/user_avatar/racket.discourse.group/jbclements/32/11_2.png) [@jbclements](https://racket.discourse.group/u/jbclements)
#### Post date: [April 23, 2023, 6:43pm UTC](https://racket.discourse.group/t/yay-fmt-title-must-be-15-chars-yay-fmt-again/1889/1 "2023-04-23T18:43:33Z")

</div>

Apropos of writing-code-to-write-exams-and-assignments, I'm super-on-board with fmt, and I can't wait until the unstable interface becomes more stable. For now I'm just going to use it anyway....

Again, many thanks for putting this together!

---

<div class="post-metadata">

### Author: ![spdegabrielle](https://yyz2.discourse-cdn.com/free1/user_avatar/racket.discourse.group/spdegabrielle/32/95_2.png) [@spdegabrielle](https://racket.discourse.group/u/spdegabrielle)
#### Post date: [April 24, 2023, 8:15am UTC](https://racket.discourse.group/t/yay-fmt-title-must-be-15-chars-yay-fmt-again/1889/2 "2023-04-24T08:15:28Z")

</div>

In case anyone is interested in what @jbclements is excited about:

`raco fmt ‹file.rkt› ...` reads ‹file.rkt›s and displays the formatted programs to the standard output.

Incidentally fmt is installed in the R16 trick bot on the [Racket Discord](https://discord.gg/6Zq8sH5) chat so you can use it with the command `!!fmt` if you are sharing code in chat, and want it to be more readable. (Unfortunately not available in other places Racket code is discussed; Discourse, IRC, Slack, etc.)

If you are interested  
\*[fmt: A code formatter for Racket presentation at 12th RacketCon](https://youtu.be/5eLPShNtSI4)

- [Fmt documentation](https://docs.racket-lang.org/fmt/index.html)
- [GitHub - sorawee/fmt: A code formatter for Racket](https://github.com/sorawee/fmt)

Many thanks to @sorawee for creating this wonderful tool. :racket_heart:

I’d like to know how @jbclements is using `fmt` for _writing-code-to-write-exams-and-assignments_ ?

Best regards  
Stephen :beetle:

PS the title minimum length of 15 characters is to encourage forum users to provide descriptive titles. How about ‘using fmt for writing-code-to-write-exams-and-assignments‘?

---

<div class="post-metadata">

### Author: ![sorawee](https://avatars.discourse-cdn.com/v4/letter/s/ea5d25/32.png) [@sorawee](https://racket.discourse.group/u/sorawee)
#### Post date: [April 24, 2023, 9:49am UTC](https://racket.discourse.group/t/yay-fmt-title-must-be-15-chars-yay-fmt-again/1889/3 "2023-04-24T09:49:16Z")

</div>

Thanks John and Stephen. Assuming that this is indeed about the code formatter, I would love to know too how `fmt` helps “writing-code-to-write-exams-and-assignments,” and how you are using the unstable interface.

The RacketCon talk is essentially about the stable interface for the next version. Alas, the backward compatibility issue is more complicated than I thought, and I haven’t had time to work on it.

---

<div class="post-metadata">

### Author: ![Laurent.O](https://yyz2.discourse-cdn.com/free1/user_avatar/racket.discourse.group/laurent.o/32/18_2.png) [@Laurent.O](https://racket.discourse.group/u/Laurent.O)
#### Post date: [April 24, 2023, 9:52am UTC](https://racket.discourse.group/t/yay-fmt-title-must-be-15-chars-yay-fmt-again/1889/4 "2023-04-24T09:52:59Z")

</div>

How about an fmt2 so you don't have to worry too much about backward compatibility, so as to just make things better/right?

---

<div class="post-metadata">

### Author: ![jbclements](https://yyz2.discourse-cdn.com/free1/user_avatar/racket.discourse.group/jbclements/32/11_2.png) [@jbclements](https://racket.discourse.group/u/jbclements)
#### Post date: [April 25, 2023, 10:30pm UTC](https://racket.discourse.group/t/yay-fmt-title-must-be-15-chars-yay-fmt-again/1889/5 "2023-04-25T22:30:26Z")

</div>

At this point, I am not currently using the unstable interface. So please, feel free to axe it or change it. Should I watch your racketcon talk to see what the new one is likely to look like?

FWIW, my current stumbling block is formatting code in the style of PLAI, where I want (most) parens to come out at curly braces. I'm confident that I could make this work either by (a) using the existing interface or (b) hacking the existing code in a terrible way or (c) waiting for a new improved interface and documentation... I'm not sure which of those is the best path forward. (So I guess that means I'm implicitly following path (c)...)
