Closed seanyoung closed 1 year ago
Adding new syntax is often quite costly. I wrote about this a while ago on my blog: https://osa1.net/posts/2020-01-22-no-small-syntax-extensions.html it's in a different context but most of the points apply here. In this particular case, I don't think this syntax will have much benefit given that _ # ...
syntax not too much more verbose and it does the same thing. So it's extra complexity (for lexgen users and developers) without much benefit.
Do you find the lack of this syntax to be a problem in practice?
Do you find the lack of this syntax to be a problem in practice?
Not really. I was just toying with lexgen.
Yes, you are right that it can be done with the existing syntax. It's just convenience syntax, when I first looked at lexgen I thought, why can't I do
[^...]
? This is how this is usually expressed, and not via_ # ...
. The resulting DFA will be exactly the same of course.