DEV Community

Discussion on: 4 tips to level up your Swift

Collapse
 
bulty_singh profile image
Vishal Singh

So, does that mean, if the code has a statement like this somewhere:
log(fetchString())

then this statement will kind of "not get executed" at all, when not in debug mode?

Collapse
 
nemecek_f profile image
Filip Němeček

Yes, only the call to the log method will but the body wont and since message is a closure then the fetchString() would be executed only in the method body and not in the method call