So, I found out that any variable or constant in swift is a tuple. For example, the variable x below is a tuple
var x = 15
and the following statement is valid and evaluates the value of x as the first element of the tuple
x.0.0.0.0.0.0.0.0.0.0.0
I wonder why the language was built for this. Any known (or extraterrestrial) use case?
source
share