Skip to content

string literal juxtaposition #20575

Closed
Closed

Description

"a"x is parsed as "a" * x, which is probably unintentional, especially given the a"b"c string macro syntax. It's very easy to remove, but when you do that "a"x becomes syntax for adding doc string "a" to variable x. Easy to see why that happens, but it's a bit odd. Should we just make "a"x a syntax error, requiring a space?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    breakingThis change will break codeneeds decisionA decision on this change is neededparserLanguage parsing and surface syntax

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions