RFC: Type Coercion From Int to Float in Assignments #27
Closed
Ratstail91
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Currently, this situation fails:
This is because 0 is an integer, while
f
is a float variable. Should I allow integer types to be coerced into floats in this situation?Mathematical evaluation already does coercion from ints to floats when needed, and a type specified on a variable will prevent it.
So if nobody has any objections, I'm gonna go ahead and do this.
Beta Was this translation helpful? Give feedback.
All reactions