Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disallow trailing junk in generators #497

Merged
merged 1 commit into from
Aug 18, 2024

Commits on Aug 18, 2024

  1. Disallow trailing junk in generators

    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.
    c42f committed Aug 18, 2024
    Configuration menu
    Copy the full SHA
    a74fb9c View commit details
    Browse the repository at this point in the history