-
Notifications
You must be signed in to change notification settings - Fork 2
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
use of enums when parsing #7
Comments
Agreed... On 15 Sep 2013, at 15:12, Richard Mortier [email protected] wrote:
|
I guess it's ok to break compatibility here, since we're still < 1.0.0. |
I took a look at this, but it's not clear to me what |
no, i'm saying that (following the example above) if you define an enum (and not force the error to be handled at that point but permit it to bubble up.) |
ps. i can try to have a go at this this afternoon perhaps. i'm bored of proposalising at the moment. and it'll be an excuse to fail to understand camlp4 too. |
Not going to do this for 1.0 since we have existing users. We can create a 1.2.x with interface-breaking changes. |
it would be nice if, given an enum of the form
...rather than
foo option
the parser return something likefoo orError
whereorError
would be defined something likethe use case is when parsing data -- it's nice to lift to a proper type as early as possible but retain the ability to output some sensible debug info when there's a parse error.
The text was updated successfully, but these errors were encountered: