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