+ 1
Shouldnt all strings have a value or something the says it could be empty or it might have a value. But making it empty isnt that wrong?
Value of strings
2 Respuestas
+ 2
No, that isn't wrong.
But you can also assign null to a string variable.
+ 1
You have to remember the 'truthy/falsey' nature of languages.
In Swift, I believe it's like Ruby in that only nil and false are falsey. Every other type is inherently truthy.
http://khanlou.com/2016/06/falsiness-in-swift/