As much as I think it's annoying I think no trailing commas enforces good coding hygiene and basically forces you to use a real encoder rather than as hoc string manipulations.
Re:TOML: Tom's Obvious Minimal Language
by marcosdumay on Sunday May 21, 2023 @03:21PM
(#36023926)
You are talking about data transfer encoding. Configuration languages are a completely different beast.
Re:TOML: Tom's Obvious Minimal Language
by rand_flip_bit on Sunday May 21, 2023 @02:52PM
(#36023722)
This is such a bad take
Care to like, elaborate? Stopping people from doing brittle stuff like
print("{")
for elem in list:
print('"key": "value",')
print("}")
seems like immediate worth.
Re:TOML: Tom's Obvious Minimal Language
by alwaysbeconsing on Sunday May 21, 2023 @04:07PM
(#36024257)
That's not a very big hurdle to overcome, though:
print("{")
contents = ""
for elem in list:
contents += '"key": "value",'
print(contents[:-1])
print("}")
The 123_456 syntax comes close to that, but is much less impactful.
None of those will make the language hard to parse.