-
Notifications
You must be signed in to change notification settings - Fork 131
Why no & operation?
#450
-
Why there isn't an operation like the following code.
// for same input, `p & q` succeeds if `p` succeeds and `q` succeeds.
def & [U >: T](q: => Parser[U]): Parser[U] = ???
Beta Was this translation helpful? Give feedback.
All reactions
Replies: 1 comment
-
I'm not sure, but it isn't clear to me which result should be returned. The type signature suggests that q
's result would be returned, but that seems like an arbitrary choice that would surprise some users.
Beta Was this translation helpful? Give feedback.
All reactions
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment