Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dart should support &&= and ||= operators. #122

Open
lrhn opened this issue Dec 3, 2018 · 4 comments
Open

Dart should support &&= and ||= operators. #122

lrhn opened this issue Dec 3, 2018 · 4 comments
Labels
feature Proposed language feature that solves one or more problems small-feature A small feature which is relatively cheap to implement.

Comments

@lrhn
Copy link
Member

lrhn commented Dec 3, 2018

Dart does not currently support using the && and || operators in assignments.
It allows other non-short-circuiting binary operators, and it allows ??=, which is short-circuiting.
Users have expressed surprise that those two are not supported.

This is a solution to #23.

See https://dart-review.googlesource.com/c/sdk/+/43500/ for a specification.

@lrhn lrhn added the feature Proposed language feature that solves one or more problems label Dec 3, 2018
@har79
Copy link

har79 commented Dec 12, 2018

Dupe of #23?

@kevmoo
Copy link
Member

kevmoo commented Aug 15, 2019

Indeed a dupe of #23 – CC @mit-mit and @eernstg

@mit-mit
Copy link
Member

mit-mit commented Aug 16, 2019

Not really; #23 is a "language request" (aka a "problem"), the present bug is a "language feature" i.e. a possible solution to the former request/problem. For more details, see https://github.com/dart-lang/language/blob/master/doc/life_of_a_language_feature.md

I have clarified this in the top-comment.

@kevmoo
Copy link
Member

kevmoo commented Aug 16, 2019

@mit-mit Noticed the labels, too.

@lrhn lrhn added the small-feature A small feature which is relatively cheap to implement. label Sep 8, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature Proposed language feature that solves one or more problems small-feature A small feature which is relatively cheap to implement.
Projects
None yet
Development

No branches or pull requests

4 participants