130
TOML (lemmy.ml)
you are viewing a single comment's thread
view the rest of the comments
[-] ell1e@leminal.space 3 points 1 day ago* (last edited 1 day ago)

INI can be nicer for non-techies due to its flat structure. However, TOML seems to be in an awkward spot: either I want flat approachable (I'll pick INI) or not (I'll pick JSONC). Why would I want a mix?

[-] Ephera@lemmy.ml 4 points 1 day ago

Well, you can still decide how much of the TOML features you actually use in your specific application. For example, I'm currently involved in two projects at $DAYJOB where we read TOML configurations and we don't make use of the inline tables that OP memes about in either of them.

Ultimately, the big advantage of TOML over INI is that it standardizes all kinds of small INI extensions that folks have come up with over the decades. As such, it has a formal specification and in particular only one specification.
You can assume that you can read the same TOML file from two different programming languages, which you cannot just assume for INI.

[-] ell1e@leminal.space 2 points 1 day ago* (last edited 1 day ago)

I can't really decide what extensions my users will face, once they are supported. Therefore too many extensions seems bad to me.

[-] Ephera@lemmy.ml 2 points 23 hours ago* (last edited 23 hours ago)

We just document that this is how you write the config file:

[network]
bind.host = "127.0.0.1"
bind.port = 1234

# etc.

And that seems straightforward enough. Yeah, technically users can opt to use inline tables or raw strings or whatever, but they don't have to.

[-] ell1e@leminal.space 1 points 11 hours ago

Configs are often shared, just to explain my reservations with TOML. For my project, I used INI instead.

this post was submitted on 24 Feb 2026
130 points (95.8% liked)

Programmer Humor

41140 readers
314 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 6 years ago
MODERATORS