Not bad! Because name
is nil
, optional binding doesn't trigger print()
. Later, "Bond"
is assigned as the default value and printed.
Whoops! Because name
is nil
, optional binding doesn't trigger print()
. Later, "Bond"
is assigned as the default value and printed.