Toml: Why `=` instead of `:`?

Created on 23 Mar 2016  路  4Comments  路  Source: toml-lang/toml

Compare following structures:

a: b
{"a": "b"}
a = "b"

It's clear that TOML is using = for compatibility with INI format, but : seems more standard nowdays and is arguably more readable and easier to write.

Maybe TOML should switch to colon syntax before 1.0? Or this is really a taste issue and it should be closed?

Most helpful comment

We're not switching.

All 4 comments

Consider these examples. Isn't the colon more elegant?

web   = "https://ya.ru"
name  = "Yandex"
match = "袧邪泄褌懈" # Regexp to match in response.
tries = 3       # Optional attempts number.
{
  "web"   : "https://ya.ru",
  "name"  : "Yandex",
  "match" : "袧邪泄褌懈",
  "tries" : 3
}

It TOML switched to colons, it could look like this:

web   : "https://ya.ru"
name  : "Yandex"
match : "袧邪泄褌懈" # Regexp to match in response.
tries : 3       # Optional attempts number.

We're not switching.

Bikeshed

Was this page helpful?
0 / 5 - 0 ratings

Related issues

emilmelnikov picture emilmelnikov  路  4Comments

Silentdoer picture Silentdoer  路  4Comments

ChristianSi picture ChristianSi  路  4Comments

hukkin picture hukkin  路  4Comments

uvtc picture uvtc  路  3Comments