Skip to content
Discussion options

You must be logged in to vote

Yes, dsl::break_ only works with dsl::loop, not dsl::list. I could extend dsl::list to also support dsl::break_ if you have a use case, but if your pattern is: dsl::loop(a | b | c >> break_), you can turn that into dsl::list(a | b) + c (potentially with dsl::must for better diagnostics.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by foonathan
Comment options

You must be logged in to vote
0 replies
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
Converted from issue

This discussion was converted from issue #252 on October 13, 2025 16:17.