Uploaded image for project: 'Go Driver'
  1. Go Driver
  2. GODRIVER-705

Add an alias in bsoncore for an Array

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor - P4
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.1.0
    • Component/s: BSON
    • Labels:

      Description

      bsoncore has a bsoncore.Document which is used for both documents and arrays. That is fine since this is very low level. However, it is very confusing when passing around arrays because the type is a bsoncore.Document. It would be great if we had a bsoncore.Array type alias so that it is clear that these bytes we are passing around is an array as opposed to a document.

        Attachments

          Activity

            People

            Assignee:
            connie.yu Run Tian Yu (Inactive)
            Reporter:
            craiggwilson Craig Wilson
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: