/top/
/new/
/best/
/ask/
/show/
/job/
^
slacker news
login
about
←back to thread
Fixing JSON
(www.tbray.org)
139 points
robin_reala
| 2 comments |
20 Aug 16 18:08 UTC
|
HN request time: 0.44s
|
source
1.
wesleytodd
◴[
20 Aug 16 18:45 UTC
]
No.
12327827
[source]
▶
>>12327668 (OP)
#
Personally I would rather it require trailing commas like Go does, any optional syntax is a step backwards IMHO
replies(1):
>>12328058
#
ID:
GO
2.
ambrop7
◴[
20 Aug 16 19:51 UTC
]
No.
12328058
[source]
▶
>>12327827 (TP)
#
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.
↑