-
Notifications
You must be signed in to change notification settings - Fork 226
Closed
Labels
featureProposed language feature that solves one or more problemsProposed language feature that solves one or more problemssmall-featureA small feature which is relatively cheap to implement.A small feature which is relatively cheap to implement.
Description
Since named arguments are distinguishable from positional ones, allowing named arguments to be placed anywhere in the argument list can be done without changing calling semantics.
It is an advantage in some cases where you want to put a function argument last. Example:
expectAsync(() {
...
}, count: 2);
would be more readable as:
expectAsync(count: 2, () {
...
});
DanTup, escamoteur, jaumard, slightfoot, Herohtar and 67 moresullenel, victorers1, firatcetiner, albertms10, ggsant and 7 more
Metadata
Metadata
Assignees
Labels
featureProposed language feature that solves one or more problemsProposed language feature that solves one or more problemssmall-featureA small feature which is relatively cheap to implement.A small feature which is relatively cheap to implement.
Type
Projects
Status
Done