You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've just had an intensive debugging session trying to figure out why is the parser reviving a harmless parse failure that should have been resolved by the | operator (and indeed it has been). In addition, by showing an irrelevant failure, this variable has hidden the real error just before the end of parser's input.
For now, I've cloned the phrase function to my parser, doing the same just w/o the mutable state to hold false errors, however, should the variable usage be removed from the library or are there any use cases where it is helpful? (and can they be solved in a referentially transparent way?)
The text was updated successfully, but these errors were encountered:
what is the purpose of
lastNoSuccessVar
?I've just had an intensive debugging session trying to figure out why is the parser reviving a harmless parse failure that should have been resolved by the
|
operator (and indeed it has been). In addition, by showing an irrelevant failure, this variable has hidden the real error just before the end of parser's input.For now, I've cloned the
phrase
function to my parser, doing the same just w/o the mutable state to hold false errors, however, should the variable usage be removed from the library or are there any use cases where it is helpful? (and can they be solved in a referentially transparent way?)The text was updated successfully, but these errors were encountered: