Skip to content

interpret call f(; x, y) as f(; x=x, y=y) #29333

@KristofferC

Description

@KristofferC

Sorry if this is a dup but I couldn't find one.

I find it quite common that one calls functions with keyword arguments like

f(; x=x, y=y, this_was_a_bit_long=this_was_a_bit_long)

My proposal is to write this as

f(;x, y, this_was_a_bit_long)

and to parse that to the first example.

Since

f(; x, y)

is already a syntax error, I think this should be possible?

Metadata

Metadata

Assignees

No one assigned

    Labels

    featureIndicates new feature / enhancement requestskeyword argumentsf(x; keyword=arguments)needs decisionA decision on this change is needed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions