I understand the difference between String(describing: int) and String(int).
However, I'm not sure what the difference is between String(int), and int.description (or even "\(int)" for that matter).
Are these functions always going to return the same value?
let int: Int = 123
let string1 = String(int)
let string2 = int.description
assert(string1 == string2)
In this simple example, it shows they are the same, but I'm wondering if there are ever times they may be different, or if there are other reasons I may want to avoid one or the other.
I see String(int) being used a lot, but the other version is slightly easier to use on Int? values:
let optionalString = optionalInt?.description