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 a hint when a double is printed #2136

Open
sethladd opened this issue Jan 3, 2014 · 9 comments
Open

Add a hint when a double is printed #2136

sethladd opened this issue Jan 3, 2014 · 9 comments
Labels
lint-request type-enhancement A request for a change that isn't a bug

Comments

@sethladd
Copy link

sethladd commented Jan 3, 2014

dart2js and vm differ when printing doubles.

  double x = 5.0;
  print("x is $x") ;

vm : 5.0
dart2js : 5

Until Issue dart-lang/sdk#15881 is address, can we give the developer a hint or warning that printing a double results in differing behavior. Giving developers early warnings when code runs differently really helps to shorten the bug cycle.

@bwilkerson
Copy link
Member

The issue to watch is now Issue dart-lang/sdk#1533.


Added this to the 1.2 milestone.

@clayberg
Copy link

Removed Priority-Unassigned label.
Added Priority-Medium label.

@clayberg
Copy link

Removed this from the 1.2 milestone.
Added this to the 1.3 milestone.

@jwren
Copy link
Member

jwren commented Mar 27, 2014

This would be a hint. Currently with other bugs and our current resources all hint work is being marked as Later.


Removed this from the 1.3 milestone.
Added this to the Later milestone.
Changed the title to: "[Hint] Add a hint when a double is printed".

@clayberg
Copy link

clayberg commented Apr 1, 2014

Added Analyzer-Hint label.

@bwilkerson
Copy link
Member

Changed the title to: "Add a hint when a double is printed".

@kasperl
Copy link

kasperl commented Jul 10, 2014

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

@sethladd
Copy link
Author

Removed Oldschool-Milestone-Later label.

@srawlins srawlins transferred this issue from dart-lang/sdk Jun 8, 2020
@srawlins
Copy link
Member

srawlins commented Jun 8, 2020

Since there are certainly false-positives here, I think this is better suited for the linter.

@srawlins srawlins added the type-enhancement A request for a change that isn't a bug label Mar 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lint-request type-enhancement A request for a change that isn't a bug
Projects
None yet
Development

No branches or pull requests

6 participants