Skip to content

Analyzer: Support "&&=" and "||=" operators #26997

Closed
@munificent

Description

@munificent

This is the analyzer-specific issue for #26996. That issue has the details.

Activity

self-assigned this
on Aug 1, 2016
bwilkerson

bwilkerson commented on Aug 2, 2016

@bwilkerson
Member

An initial implementation has been committed (https://codereview.chromium.org/2199323002/). The support is behind a flag, but there is no user-visible way to set the flag. Waiting on shared tests to make the feature user-visible.

added
P2A bug or feature request we're likely to work on
type-enhancementA request for a change that isn't a bug
on Aug 9, 2016
removed their assignment
on Sep 6, 2018
bwilkerson

bwilkerson commented on Sep 6, 2018

@bwilkerson
Member

@munificent Should this be closed?

eernstg

eernstg commented on Sep 7, 2018

@eernstg
Member

I believe we should just get it done, and I don't yet see it working in dartanalyzer (nor in dart for that matter). The spec update has not been landed yet, but it might be obvious (it's a 3 value domain, and it must shortcut, and it should be similar to other compound assignment operators ;-).

bwilkerson

bwilkerson commented on Sep 7, 2018

@bwilkerson
Member

There was support in analyzer behind a flag, but now that analyzer is on the fasta parser we've lost that support.

Is this an approved 2.1 language feature? I don't remember seeing it on the list, and we're getting very close to shipping, so I don't know that it's reasonable to add new changes at this date. Should we push this to 2.2?

eernstg

eernstg commented on Sep 7, 2018

@eernstg
Member

I don't think it's on any short list, in particular certainly not 2.1, but I do think that the whole language team considers it to be an oversight that we don't yet have it, and it should just be done when possible. Don't we have a place for things that just need to be done, even though it won't be right now? ;-)

bwilkerson

bwilkerson commented on Sep 7, 2018

@bwilkerson
Member

I'm happy to see us improve the quality of Dart, and I think this change would do so. To explain, I was reacting to "just get it done", which sounded like a call to immediate action. It's a non-zero amount of work, so I'd like to see it scheduled.

Perhaps we should create a "Dart2.2" milestone and add a meta issue to it to implement this in both analyzer and front_end.

eernstg

eernstg commented on Sep 7, 2018

@eernstg
Member

reacting to "just get it done"

Oops, those words were not well-chosen, sorry about that. I just meant that it would be a good idea to keep this issue open, as opposed to closing it and forgetting all about this topic (after all, it looks pretty much like an oversight that those forms of compound assignment are not supported). I think it would be a good idea to put it on such a milestone.

bwilkerson

bwilkerson commented on Sep 7, 2018

@bwilkerson
Member

No problem :-)

Should we create an issue in the language repo?

4 remaining items

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2A bug or feature request we're likely to work ondart-model-analyzer-specIssues with the analyzer's implementation of the language speclegacy-area-analyzerUse area-devexp instead.type-enhancementA request for a change that isn't a bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @munificent@srawlins@bwilkerson@eernstg

        Issue actions

          Analyzer: Support "&&=" and "||=" operators · Issue #26997 · dart-lang/sdk