TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

TOML [Tom's Obvious Minimal Language]

10 pointsby wanderer23233 months ago

4 comments

b4ckup3 months ago
I tried to use toml in as config format for the app I am building at my day job. I ditched it for json because it's representation is not unambiguous, meaning the same object tree has many many different valid representations in toml. This makes it really hard to implement roundtripping of the config string to object tree and then back to config string without losing the specific toml representation chosen by the config author and no library that I've encountered supports it properly. For me this was a very important use case (config migrations). I implemented my own json parser that preserves json formatting and comments in half a day. Maybe json is harder to read and write but imo it's simplicity is a good feature.
评论 #43101816 未加载
gnabgib3 months ago
Popular in:<p>2023 (165 points, 221 comments) <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=36018817">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=36018817</a><p>2020 (146 points, 160 comments) <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=24436550">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=24436550</a><p>2018 (358 points, 195 comments) <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=17513770">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=17513770</a>
LorenDB3 months ago
Required reading for anybody considering using TOML for something: <a href="https:&#x2F;&#x2F;github.com&#x2F;madmurphy&#x2F;libconfini&#x2F;wiki&#x2F;An-INI-critique-of-TOML">https:&#x2F;&#x2F;github.com&#x2F;madmurphy&#x2F;libconfini&#x2F;wiki&#x2F;An-INI-critique...</a>
评论 #43099010 未加载
评论 #43098037 未加载
评论 #43098991 未加载
评论 #43099385 未加载
AstroJetson3 months ago
I still like using Lua as my .ini file data source. I can use a wide range of inputs from numbers to tables. Parsing the file is easy, and getting it into another program is less work that trying to add a parser.