I'm just reading through the Swift book from Apple and am a little confused about implicit conversion. In one example there is this:
let mynum: Float = 4
and then immediately after it says: "Values are never implicitly converted to another type."
Whats going on here? They just implicitly converted an Int
literal into a Float
and then they are saying that values are never implicitly converted? Can anyone explain what the rule/exception is here?