Trailing commas a very highly impactful to the users, and trivial to the language writers.
The 123_456 syntax comes close to that, but is much less impactful.
None of those will make the language hard to parse.
The 123_456 syntax comes close to that, but is much less impactful.
None of those will make the language hard to parse.
print("{")
for elem in list:
print('"key": "value",')
print("}")
seems like immediate worth. print("{")
contents = ""
for elem in list:
contents += '"key": "value",'
print(contents[:-1])
print("}")