-
Notifications
You must be signed in to change notification settings - Fork 130
Closed
Description
Rather than
void main() {
DeprecationProcessingLogger deprecationLogger =
logger = DeprecationProcessingLogger(
logger ?? Logger.stderr(),
silenceDeprecations: {...?silenceDeprecations},
fatalDeprecations: {...?fatalDeprecations},
futureDeprecations: {...?futureDeprecations},
limitRepetition: !verbose,
);
}
I'd prefer
void main() {
DeprecationProcessingLogger deprecationLogger = logger =
DeprecationProcessingLogger(
logger ?? Logger.stderr(),
silenceDeprecations: {...?silenceDeprecations},
fatalDeprecations: {...?fatalDeprecations},
futureDeprecations: {...?futureDeprecations},
limitRepetition: !verbose,
);
}
While the AST thinks of the second assignment as an expression, as a user I think of it as an addendum to the LHS, and so I expect it to bind more tightly there than to the value of the assignment.
StarProxima
Metadata
Metadata
Assignees
Labels
No labels