幻㮠ECMAScript 4th å¹»ã¨ãªã£ã ECMAScript 4th ã®ãã©ãããçºãã¦ããã¨ãã, p.33 ã« Destructuring assignment and binding (åå²ä»£å
¥, åå²æç¸) ã¨ããé
ç®ãçºè¦ãã. åå²ä»£å
¥ã«é¢ãã¦ã¯ JavaScript 1.7 (Firefox ãªã©ãç¨ãã SpiderMonkey ã Rhino ã«å®è£
æ¸ã¿) ãã使ç¨ãå¯è½ã§ãããã, ãåç¥ã®æ¹ãå¤ãã®ã§ã¯ãªããã¨æã. ãããããã°è©³ããä»æ§ã¯è¦ããã¨ããªãã£ããªãã¨è»½ãæ°æã¡ã§èªã¿é²ãã¦ããã¨ãã, ããã«è¿°ã¹ããã¦ãããã¨ã Haskell ã OCaml ãªã©é¢æ°åè¨èªã«ããããã¿ã¼ã³ãããã¨åçã§ããã¨åãã, é©ãã. ä¾ãã°, åå²ä»£å
¥ã«ããã¦ã¯æ¬¡ã®ããã« deep ãªãã¿ã¼ã³ãå©ç¨å¯è½ã§ããã¨æ¸ããã¦ãã. let { x: {a, b}, y:
{{#tags}}- {{label}}
{{/tags}}