Skip to content

Revisit guidance re adding optional nullable properties #13

@lawrence-forooghian

Description

@lawrence-forooghian

The README says:

Avoid introducing new @optional properties with a nullable type, since in this case Swift does not provide a mechanism for differentiating between "property not implemented" and "property implemented and its value is nil". Use a getter method in this situation instead.

I'm not actually sure this is true — you can still do the responds(to:) check explicitly in Swift

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions