|
|
|
|
|
by josephlord
4398 days ago
|
|
if var == true {...}
In some languages var might be truthy but not equal to true. The falsy values may be more of a problem at times.However in the strongly typed swift I don't think it will be a problem as I suspect (but haven't read/tested enough yet to confirm) that only false and nil will be falsy and that comparison with true will throw errors if var isn't of bool type. |
|