mattbierner / khepri

ECMAScript derived programming language
http://khepri-lang.com/
MIT License
67 stars 3 forks source link

Restrict As Pattern #33

Closed mattbierner closed 10 years ago

mattbierner commented 10 years ago

Patterns Like a#b#c#d and a#... or a_, are currently valid. The second two are bug, the first just doesn't make a lot of sense.

The as pattern should only target object and array patterns.