Is there a Simple way in Swift to iterate over the attributes of a class.
i.e. i have a class Person, and it has 3 attributes: name, lastname, age.
is there something like
for attribute in Person {
println("\(attribute): \(attribute.value)")
}
the output would be for example:
name: Bob
lastname: Max
age: 20