2 ms·Go solves this problem by permitting foo := Foo{ x: 10, y: 24, }by weberc2 9y agoGo solves this problem by permitting foo := Foo{ x: 10, y: 24, }mercurial 9y agoAlso Perl, Python, Javascript and Rust.weberc2 9y agoJavaScript doesn't (didn't?) let you put a trailing comma in function parameter lists, annoyingly.Arnavion 9y agoMade legal in ES2017.teddyh 9y agoBut not in JSON, since that is based on ECMA-262 3rd Edition from December 1999.teddyh 9y agoPython does this, too.