Question about pattern

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Question about pattern

Eric Suen-4
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
[hidden email]
https://mail.mozilla.org/listinfo/es4-discuss
Reply | Threaded
Open this post in threaded view
|

Re: Question about pattern

Lars T Hansen-2
I believe it is restricted to ArrayPattern.  --lars

On 8/23/07, Eric Suen <[hidden email]> 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
> [hidden email]
> https://mail.mozilla.org/listinfo/es4-discuss
>
_______________________________________________
Es4-discuss mailing list
[hidden email]
https://mail.mozilla.org/listinfo/es4-discuss