The first method is tooooooooo verbose since I have to create an empty object.
The second method is unsafe when obj is nil.
What I wan is simple.
print("object: \(obj)" should just print out either
object: Lang:en name:(none)
or
object:
or object: nil when the object is nil.
Topic:
Programming Languages
SubTopic:
Swift
Tags: