Skip to content
Discussion options

You must be logged in to vote

Yes, nesting alt()s within alt()s should work. The limitation is similar to (sequenced, parsers). This comes from us having to explicitly enumerate a trait implementation for every tuple length we want to support.

dispatch! does not have this problem as its a macro that is directly generating the code and it generates a match statement which can be as large as you want.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by DavidAntliff
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