Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Don't trigger recursion errors on medium-size set literals (#1785)
Currently set literals get compiled into a chain of UNIONs, which causes a big blowup in the nesting depth of the AST. As a result, we trip a recursion error on set literals containing 60 one-element tuples, which is a solidly medium-size input. Fix this by compiling set literals into a tree of UNIONs instead of a chain. Fixes #475 to my satisfaction though others may disagree
- Loading branch information
Showing
2 changed files
with
25 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters