Repository navigation
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
Uh oh!
There was an error while loading. Please reload this page.
Currently, this situation fails:
This is because 0 is an integer, while
fis 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.
All reactions