Open sethladd opened 10 years ago
Removed Priority-Unassigned label. Added Priority-Medium label.
Added Analyzer-Hint label.
Changed the title to: "Add a hint when a double is printed".
Removed this from the Later milestone. Added Oldschool-Milestone-Later label.
Removed Oldschool-Milestone-Later label.
Since there are certainly false-positives here, I think this is better suited for the linter.
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.