-
Notifications
You must be signed in to change notification settings - Fork 51
Parser.String.regex #153
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Parser.String.regex #153
Conversation
What was the reason for taking an options object instead of using the |
Yeah I see what you mean. If the type of this parser were But I’m not sure that it handles default flags well. Two of the But I don’t know, that’s a pretty rare case, and it may never come up, and if it does come up then the user could set the Another problem with the Semigroup API is that if the user wants to turn on The part that troubles me the most is that I defined a I would like to hear your advice about this. |
How would you turn off flags given a semigroup flags value? Or is that not possible? |
The docs don't specify why the defaults are the way that they are, so I'm left to guess a bit. For example, in string-parsers it always uses If you feel very strongly that these defaults are correct for 95%+ of use cases, maybe the default |
I'm not at all sure that these defaults are correct.
Ok I like that, I'll change it so it works that way. |
Add a
regex
parser.Resolves #141
Checklist: