-
-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Disallow trailing junk in generators (#497)
Disallow generator syntax with trailing non-delimited expressions (y for x in xs a) (y for x in xs a, b) Allow parameter syntax such as f(y for x in xs; a) because the flisp parser allowed this it's used in Base in at least one location. Disallow the almost-equivalent block syntax for now: (y for x in xs; a) because the flisp parser disallowed it and users can always get the same thing with some extra parentheses.
- Loading branch information
Showing
2 changed files
with
22 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