Skip to content

Ergonomic way to combine parsers of different types? #621

Answered by epage
npetrangelo asked this question in Q&A
Discussion options

You must be logged in to vote

Instead of [] in the alt, use () which allows different types. Thats the primary way we recommend people use alt. ‘[]` support is newer and more for some corner cases.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by npetrangelo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants