Skip to content

How to use “>>>” in Dart ? #294

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

Closed
arcticfox1919 opened this issue Apr 1, 2019 · 3 comments
Closed

How to use “>>>” in Dart ? #294

arcticfox1919 opened this issue Apr 1, 2019 · 3 comments

Comments

@arcticfox1919
Copy link

dart operators

Dart documentation indicates support for the '>>>' operator

but the code can't run, how can I use it?

void main() {
  print(3 >>> 1);
}
@arcticfox1919
Copy link
Author

Is it because the guy who wrote the document copied it directly from Java or JavaScript?

@eernstg
Copy link
Member

eernstg commented Apr 1, 2019

>>> has been specified (it's needed because there is no logical shift right in Dart otherwise), but has not yet been implemented. Work is ongoing, but it was delayed because of other features with a higher priority.

The implementation plan is here: https://github.com/dart-lang/language/blob/master/accepted/future-releases/triple-shift-operator/implementation-plan.md.

@mit-mit mit-mit closed this as completed Jul 29, 2019
@mit-mit
Copy link
Member

mit-mit commented Jul 29, 2019

#120 is the feature bug to track for this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants