News for hackers. Stuff that matters.
Re:Ellie – An Elm Live Editor by RobertKerans on Saturday February 11, 2017 @04:46AM (#13621951)
They might have been technically legal since ES5, but they were only finalised this year (ES2017, with function params), and still don't seem to have full support. I've been burned a few times by that: I know that MDN article cited says they are, but code with trailing commas (esp objects) breaks in eg IE without transpilation
Re:Ellie – An Elm Live Editor by allover on Saturday February 11, 2017 @05:17AM (#13622021)
Yeah as the article says they were only added for object literals in ES5, which is the main place the 'issue' comes up, and where I was making the comparison to Elm. That works in IE > ~7/8? without transpilation.