Skip to content

Disallow @macroname x, y? #12021

Closed
Closed
@simonster

Description

@simonster

It's not immediately obvious to many people that @macroname x, y will be parsed as @macroname((x, y)) and not @macroname(x), y or @macroname(x, y). This has been a source of confusion for use of @compat (JuliaLang/Compat.jl#71, JuliaLang/Compat.jl#111, JuliaLang/Compat.jl#116, JuliaLang/Compat.jl#136, probably other places as well), but I'm not sure I've ever seen it used intentionally. In the interest of usability, we might just want to throw an error.

cc @sbromberger

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs decisionA decision on this change is neededparserLanguage parsing and surface syntaxspeculativeWhether the change will be implemented is speculative

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions