[GODRIVER-705] Add an alias in bsoncore for an Array Created: 14/Dec/18 Updated: 28/Oct/23 Resolved: 04/Jun/19 |
|
| Status: | Closed |
| Project: | Go Driver |
| Component/s: | BSON |
| Affects Version/s: | None |
| Fix Version/s: | 1.1.0 |
| Type: | Improvement | Priority: | Minor - P4 |
| Reporter: | Craig Wilson | Assignee: | Run Tian Yu (Inactive) |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | neweng | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| 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. |
| Comments |
| Comment by Githook User [ 04/Jun/19 ] |
|
Author: {'name': 'Connie Yu', 'email': 'connie.yu@10gen.com', 'username': 'connieyu'}Message: Add bsoncore.Array type alias Change-Id: I900907e2339fbda10ad92487b141e515d7ffe7b3 |