5 ms·
Destructuring assignment long predates Coffeescript. According to the Coffeescript docs, they took the syntax from earlier drafts of ES6. Destructuring assignme
by pjscott 13y ago
Destructuring assignment long predates Coffeescript. According to the Coffeescript docs, they took the syntax from earlier drafts of ES6. Destructuring assignment long predates ES6. Common Lisp had a destructuring-bind macro back in the early 90s, and I'd bet it wasn't a novel invention back then.
- masklinn 13y agoAnd even in JS-land itself, Mozilla introduced destructuring assignment in Javascript 1.7 (alongside iterators, generators, array comprehensions and `let`). Javascript 1.7 was introduced in Firefox 2, in October 2006. > I'd bet it wasn't a novel invention back then. Indeed, ML featured destructuring assignment (which it called "patterns") of tuples and records back in the 70s.