-
-
Notifications
You must be signed in to change notification settings - Fork 5.7k
Closed
Labels
featureIndicates new feature / enhancement requestsIndicates new feature / enhancement requestskeyword argumentsf(x; keyword=arguments)f(x; keyword=arguments)needs decisionA decision on this change is neededA decision on this change is needed
Description
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?
yurivish, KristofferC, Keno, maleadt, malmaud and 28 moreyuyichao, ararslan, fredrikekre, non-Jedi, cossio and 1 moreyurivish, ettersi and EricForgyyurivish
Metadata
Metadata
Assignees
Labels
featureIndicates new feature / enhancement requestsIndicates new feature / enhancement requestskeyword argumentsf(x; keyword=arguments)f(x; keyword=arguments)needs decisionA decision on this change is neededA decision on this change is needed