You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For the sake of type safety, it's best practice to use Std.int() to convert Float to Int. It would be nice if a check could detect cases where this is done with cast (both the safe and the unsafe variant) - from my experience this is a common beginner mistake.
The text was updated successfully, but these errors were encountered:
For the sake of type safety, it's best practice to use
Std.int()
to convertFloat
toInt
. It would be nice if a check could detect cases where this is done withcast
(both the safe and the unsafe variant) - from my experience this is a common beginner mistake.The text was updated successfully, but these errors were encountered: