News for hackers. Stuff that matters.
Re:What Is Wrong with TOML? by dharmab on Wednesday September 13, 2023 @10:00AM (#37496863)
The first thing reminds me of example tests in Go: https://go.dev/blog/examples
Re:What Is Wrong with TOML? by hitchstory on Wednesday September 13, 2023 @11:04AM (#37497719)
Similar. It's like that but in reverse. Instead of running snippets of your docs as code, the tests and their metadata are used to compile doc snippet or entire how to docs pages.
Re:What Is Wrong with TOML? by dharmab on Wednesday September 13, 2023 @05:52PM (#37502226)
That is how Go's examples work- your example tests are inlined into the GoDocs at pkg.go.dev