Ticket #6 (new enhancement)
Syntactic sugar for optionality and variants
| Reported by: | PeterLjunglof | Owned by: | |
|---|---|---|---|
| Priority: | major | Version: | |
| Keywords: | Cc: |
Description
Optionality and variants are so common so I think we need som sugar for these. optStr(...) only works for strings, and variants{...;...} is quite cumbersome to read and write. And both are difficult to notice in a rule.
Suggestion: ? for optionality and | for variants
Question: should ? be a prefix or postfix operator? personally I prefer prefix operators - they are easier to notice.
Change History
Note: See
TracTickets for help on using
tickets.
