support string range operator #12

Closed
opened 6 years ago by mbutterick · 3 comments
mbutterick commented 6 years ago (Migrated from github.com)

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

Expands to choice pattern, so `"0".."3"` is the same as `("0" | "1" | "2" | "3")`
mbutterick commented 6 years ago (Migrated from github.com)

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

I suppose this is a special case of #11 also.
mbutterick commented 6 years ago (Migrated from github.com)

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

Though it could also be implemented as shorthand for a choice pattern.
mbutterick commented 5 years ago (Migrated from github.com)

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.

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.
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: mbutterick/brag#12
Loading…
There is no content yet.