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

RFC: Infer the type of float literals #3059

Closed
brson opened this issue Jul 31, 2012 · 2 comments
Closed

RFC: Infer the type of float literals #3059

brson opened this issue Jul 31, 2012 · 2 comments
Assignees
Labels
A-frontend Area: Compiler frontend (errors, parsing and HIR)
Milestone

Comments

@brson
Copy link
Contributor

brson commented Jul 31, 2012

Roadmap says "There is general consensus that floating point literals are too long; 1.0f will likely become sugar for 1.0f32. This is purely a backwards-compatible change."

Not sure the details - I think we already have a f literal though for float.

@ghost ghost assigned pcwalton Aug 31, 2012
@pcwalton
Copy link
Contributor

pcwalton commented Sep 6, 2012

The fact that f already means float is a problem. I propose keeping the literals the way they are and inferring which float is meant, much as we do for integers.

@catamorphism
Copy link
Contributor

Done in fe02814

RalfJung pushed a commit to RalfJung/rust that referenced this issue Sep 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-frontend Area: Compiler frontend (errors, parsing and HIR)
Projects
None yet
Development

No branches or pull requests

3 participants