TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

TOML [Tom's Obvious Minimal Language]

10 点作者 wanderer23233 个月前

4 条评论

b4ckup3 个月前
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 个月前
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 个月前
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 个月前
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.