Task

The goal is to get the properties of an object, as names, values or both.

Some languages support dynamic properties, which in general can only be inspected if a class' public API includes a way of listing them.

for obj in (Int, 1, 1:10, collect(1:10), now())
    println("\nObject: $obj\nDescription:")
    dump(obj)
end