No Parser.backtrackable
#87
Janiczek
started this conversation in
Rule ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
This function is an antipattern and becomes inefficient when used together with Parser.oneOf. The thing is, it's a quick fix sometimes and leads to nicer-looking (more declarative) code, so people are tempted to use it.
Disallow usages of this function.
Note there are two variants: Parser.backtrackable and Parser.Advanced.backtrackable.
BONUS ROUND: have a fix that rewrites the code from backtrackable to non-backtrackable. (Likely hard? Spread across multiple declarations etc.)
Beta Was this translation helpful? Give feedback.
All reactions