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

Throw from BSONDocument subscript

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Major - P3
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: bson-4.0.0
    • Component/s: bson
    • Labels:

      Description

      Swift 5.5+ will allow throwing from subscripts. In our next major version it would make sense to start doing this for the BSONDocument subscript so we don't have to crash if, for example, the user provides an invalid key, or we encounter invalid BSON while reading through the bytes.

        Attachments

          Activity

            People

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

              Dates

              Created:
              Updated: