Join Slack
Powered by
If I define a property like ``` class Foo { ...
# announcements
b
benny_wang
03/07/2016, 4:16 AM
If I define a property like
Copy code
class Foo { var name: String? }
compiler says should name should be initialized, I change it to var name: String? = null, then is OK. Is there have ways to avoid = null for every nullable property?
Open in Slack
Previous
Next