Y
Hacker News
new
|
ask
|
show
|
jobs
by
weberc2
3285 days ago
Go solves this problem by permitting
foo := Foo{ x: 10, y: 24, }
2 comments
mercurial
3285 days ago
Also Perl, Python, Javascript and Rust.
link
weberc2
3284 days ago
JavaScript doesn't (didn't?) let you put a trailing comma in function parameter lists, annoyingly.
link
Arnavion
3284 days ago
Made legal in ES2017.
link
teddyh
3274 days ago
But not in JSON, since that is based on ECMA-262 3rd Edition from December 1999.
link
teddyh
3285 days ago
Python does this, too.
link