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
[ Parent
| on HN ]
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("}")