mbutterick/brag

support string range operator

Closed this issue · 3 comments

Expands to choice pattern, so "0".."3" is the same as ("0" | "1" | "2" | "3")

I suppose this is a special case of #11 also.

Though it could also be implemented as shorthand for a choice pattern.

As a matter of syntax expansion, this could be done. But it’s too hard to figure out how it should work in cases other than digits. Even alphabets are complex. Too much mischief.