Uploaded image for project: 'Swift Driver'
  1. Swift Driver
  2. SWIFT-826

Make Date(msSinceEpoch:) internal

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.0.0
    • Component/s: None
    • Labels:
      None

      Description

      It is unwise to publicly extend a type you don't own to add an initializer using a type you also don't own. This could end up colliding with the standard library if they added such an initializer, or another user's library if they added the same one.

      We only use this internally, making it public was likely an oversight.

        Attachments

          Activity

            People

            Assignee:
            kaitlin.mahar Kaitlin Mahar
            Reporter:
            kaitlin.mahar Kaitlin Mahar
            Participants:
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: