Comment on Swift BlogparentComments−TylerE12yIn general, there are good reasons to not do implicit casts, especially between ints and floats. For one, it's actually a fairly expensive operation.−Locke168912yEh, not really. Certainly conversions from int->long should be implicit (I don't know if they are in Swift, though).−swift12yPresumably you mean there are good reasons not to do implicit casts.
Comments
In general, there are good reasons to not do implicit casts, especially between ints and floats. For one, it's actually a fairly expensive operation.
Eh, not really. Certainly conversions from int->long should be implicit (I don't know if they are in Swift, though).
Presumably you mean there are good reasons not to do implicit casts.