Actions
Feature #17290
closedSyntax sugar for boolean keyword argument
Feature #17290:
Syntax sugar for boolean keyword argument
Status:
Closed
Assignee:
-
Target version:
-
Description
We frequently use keyword arguments just to pass true value out of the truthy/falsy options given. And in many such cases, the falsy option is set as the default, and only the truthy value is ever passed explicitly. I propose to have a syntax sugar to omit the value of a keyword argument. When omitted, it should be interpreted with value true.
should be equivalent to
Additionally, we may also extend this to pragmas.
to be equivalent to:
Actions