4 ms·
Reading through, they treat a range (like 1 .. 10 ) as pattern matching 1 2 3 4 5 6 7 8 9 10, with .. representing 2 3 4 5 6 7 8 9. In that light, it actually
by swsieber 10y ago
Reading through, they treat a range (like 1 .. 10 ) as pattern matching 1 2 3 4 5 6 7 8 9 10, with .. representing 2 3 4 5 6 7 8 9.
In that light, it actually makes sense.
- cannam 10y agoAh of course, that is quite widely used (e.g. Perl). If you already have that, I can see why you'd reuse the same token. (edit: ok, I see from other replies that it's not that simple)
- anuragsoni 10y agoMinor correction, to match a range the syntax would be 1 ... 10