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

Document the triple-shift (>>>) operator #3455

Closed
kwalrath opened this issue Aug 5, 2021 · 0 comments · Fixed by #3541
Closed

Document the triple-shift (>>>) operator #3455

kwalrath opened this issue Aug 5, 2021 · 0 comments · Fixed by #3541
Assignees
Labels
a.language Relates to the Dart language tour co.request Community ask for documentation e1-hours Can complete in < 8 hours of normal, not dedicated, work p2-medium Necessary but not urgent concern. Resolve when possible.

Comments

@kwalrath
Copy link
Contributor

kwalrath commented Aug 5, 2021

What information is missing?

2.14 will support the >>> operator. I need to update the language tour to reflect that. Resources:

The JS version is different because JS numbers are different:

  • The feature spec says, "The JavaScript implementation of int's >>> operator must be decided and implemented by the JavaScript platforms. It likely works like >> except that it doesn't "sign-extend" the most significant bit."
  • Lasse's comment says, "The int.>>> operator should probably do non-sign-extending shift of Int32 values, then convert to Uint32. That is where the Dart x >> y is implemented in JS as (x >> y) >>> 0, then x >>> y in Dart can be implemented as just x >>> y in JS."

How would you like us to fix this problem?

Language tour, where >> is listed/discussed.

@kwalrath kwalrath added a.language Relates to the Dart language tour p2-medium Necessary but not urgent concern. Resolve when possible. e1-hours Can complete in < 8 hours of normal, not dedicated, work co.request Community ask for documentation labels Aug 5, 2021
@kwalrath kwalrath added this to the Next stable release milestone Aug 5, 2021
@kwalrath kwalrath self-assigned this Aug 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
a.language Relates to the Dart language tour co.request Community ask for documentation e1-hours Can complete in < 8 hours of normal, not dedicated, work p2-medium Necessary but not urgent concern. Resolve when possible.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants