←back to thread

Fixing JSON

(www.tbray.org)
139 points robin_reala | 2 comments | | HN request time: 0.44s | source
1. wesleytodd ◴[] No.12327827[source]
Personally I would rather it require trailing commas like Go does, any optional syntax is a step backwards IMHO
replies(1): >>12328058 #
2. ambrop7 ◴[] No.12328058[source]
The best way is to require one comma between elements but allow one trailing comma after the last element. This way you can both do multi-line and one-line lists nicely.