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

Move Document conformance to ExpressibleByDictionaryLiteral and ExpressibleByArrayLiteral into extensions

    XMLWordPrintable

Details

    • Improvement
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • None
    • 0.0.8
    • None

    Description

      For all other protocols Document conforms to, we declare conformance via extension. We should do the same for these.

      the reason we didn't initially was that classes must have protocol-required initializers in their declarations, and Document used to be a class. 

      now that it is a struct, it's cleaner and more consistent to move these out to extensions.

      Attachments

        Issue Links

          Activity

            People

              patrick.freed@mongodb.com Patrick Freed
              kaitlin.mahar@mongodb.com Kaitlin Mahar
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: