←back to thread

Fixing JSON

(www.tbray.org)
139 points robin_reala | 1 comments | | HN request time: 0s | source
Show context
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 #
1. 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.