Skip to content

Triple-shift operator #120

@lrhn

Description

@lrhn
Member

Dart integers are now 64-bit signed numbers. That makes the >>> logical down-shift operator useful again. (It existed once, but with arbitrary size integers, the it didn't make sense to do unsigned shifiting any more).

This is a request for the >>> operator. It makes sense in other cases too (like the Int64 class).

Associated feature specification has more details.

Implementation issue: #478

Activity

added
requestRequests to resolve a particular developer problem
featureProposed language feature that solves one or more problems
on Nov 30, 2018
removed
requestRequests to resolve a particular developer problem
on Dec 3, 2018
changed the title [-]Dart integers have no logical down-shift operator.[/-] [+]Triple-shift operator[/+] on Jul 29, 2019
rashedmyt

rashedmyt commented on Jan 26, 2020

@rashedmyt
Contributor

@lrhn In the 2nd para of the Background section in feature-specification, it is mentioned that dart integers are unsigned 64 bit which is the opposite of what said in the above comment..

lrhn

lrhn commented on Jan 27, 2020

@lrhn
MemberAuthor

Thanks, good catch. That should definitely be signed 64-bit integers.
Fixed.

added
small-featureA small feature which is relatively cheap to implement.
on Jul 8, 2020
creativecreatorormaybenot

creativecreatorormaybenot commented on Aug 1, 2021

@creativecreatorormaybenot
Contributor

@lrhn I think this can be closed now 🙌

#478 (comment)

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

Metadata

Metadata

Assignees

Labels

featureProposed language feature that solves one or more problemssmall-featureA small feature which is relatively cheap to implement.

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

    Development

    No branches or pull requests

      Participants

      @lrhn@eernstg@mit-mit@creativecreatorormaybenot@rashedmyt

      Issue actions

        Triple-shift operator · Issue #120 · dart-lang/language