Nathan-Wall / proto

A programming language derived from JavaScript which emphasizes prototypes, integrity, and syntax.
Other
12 stars 1 forks source link

Allow ranges as left operand in `in` binary expression #47

Open Nathan-Wall opened 10 years ago

Nathan-Wall commented 10 years ago

(0..2) in [ 'a', 'b', 'c' ] should evaluate to true.

Note that the parens are a bit annoying, but are currently needed due to ..'s super low precedence. See #46 for a discussion about changing this.