Uploaded image for project: 'Swift'
  1. Swift
  2. SR-3310

Property observer/Setter patterns that should always error

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Medium
    • Resolution: Unresolved
    • Component/s: Compiler
    • Labels:

      Description

      Swift should warn or, preferably, error on `set(oldValue)`, `willSet(oldValue)`, and `didSet(newValue)`, since these can be considered to be always a priori written in error.

        Attachments

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            erica erica sadun
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated: