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

Add binary integer literals #581

Open
DartBot opened this issue May 2, 2012 · 6 comments

Comments

@DartBot
Copy link

commented May 2, 2012

This issue was originally filed by ladicek@gmail.com


When working with bits and bytes, having binary integer literals comes handy, as a lot of languages acknowledged (Python, Ruby, Java, even GCC has them as an extension). I believe that the reasoning behind adding binary literals to Java 7, as per http://mail.openjdk.java.net/pipermail/coin-dev/2009-March/000929.html, is equally valid to Dart, and therefore I propose to add binary literals in the same form ("0b100000" as an equivalent of "0x20"). I think that implementation is no concern (I did it in the VM and it was pretty straightforward, as I describe in http://ladicek.github.com/2012/04/29/hacking-the-vm-adding-binary-integer-literals.html).

@anders-sandholm

This comment has been minimized.

Copy link

commented May 8, 2012

Removed Type-Defect label.
Added Type-Enhancement, Area-Language, Triaged labels.

@gbracha

This comment has been minimized.

Copy link

commented May 8, 2012

Set owner to @gbracha.
Added Accepted label.

@gbracha

This comment has been minimized.

Copy link

commented May 24, 2012

Probably should be treated in the context of a general radix indicator.


Added this to the Later milestone.

@kasperl

This comment has been minimized.

Copy link

commented Jul 10, 2014

Removed this from the Later milestone.
Added Oldschool-Milestone-Later label.

@kasperl

This comment has been minimized.

Copy link

commented Aug 4, 2014

Removed Oldschool-Milestone-Later label.

@srawlins

This comment has been minimized.

Copy link
Member

commented Oct 2, 2014

@lrhn lrhn transferred this issue from dart-lang/sdk Sep 18, 2019

@lrhn lrhn added the feature label Sep 18, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
6 participants
You can’t perform that action at this time.