Y
Hacker News
new
|
ask
|
show
|
jobs
by
WalterSear
3263 days ago
What I want are leading commas. Much tidier and one small thing you wouldn't have to edit/think about when adding and removing list items.
2 comments
mstade
3263 days ago
Better yet: automatic comma insertion! (I'm only half joking.)
link
thekaleb
3262 days ago
Unless you need to add something to the beginning.
link
WalterSear
3262 days ago
I prefer comma first notation.
const hello = { , 'one' , 'two' , 'three }
would be easier to visually parse than:
const hello = { 'one', 'two', 'three', }
Since the commas actually work as a guide.
link