Question about pattern
# Lars T Hansen (18 years ago)
I believe it is restricted to ArrayPattern.
I believe it is restricted to ArrayPattern. --lars On 8/23/07, Eric Suen <eric.suen.tech at gmail.com> wrote: > Hi, > > Pattern ::= ArrayPattern > Pattern -> SimplePattern -> LeftHandSideExpression -> ArrayLiteral > > Is it possible ArrayLiteral appear in Pattern, or it must be an > ArrayPattern? Like ExpressionStatement can't have FunctionExpression > and ObjectLiteral? Same question about ObjectPattern and ObjectLiteral > > Regards, > > Eric > > ------------------------------------------------ > Spket IDE - Development Tool for RIA. > > http://www.spket.com > _______________________________________________ > Es4-discuss mailing list > Es4-discuss at mozilla.org > https://mail.mozilla.org/listinfo/es4-discuss >
Pattern ::= ArrayPattern Pattern -> SimplePattern -> LeftHandSideExpression -> ArrayLiteral
Is it possible ArrayLiteral appear in Pattern, or it must be an ArrayPattern? Like ExpressionStatement can't have FunctionExpression and ObjectLiteral? Same question about ObjectPattern and ObjectLiteral
,