Alternative PR to address uniqueness ordering and properties, introducing handle(bson)#152
Conversation
Co-authored-by: Copilot <copilot@github.com>
|
It might be better to separate these changes in two PRs, but some comments here. Property based data accessThe Dict typeHave you considered surfacing this as |
|
Thanks for answering:
Leaving both getindex methods with String key and Symbol key could be interesting. People who are sure that they don't overwrite or call merge! explicitly can benefit from less iteration, if String keys always returns the first entry. Questions to be answered_
Concerning your question with BSONIterator, you're probably right, but I'm at the beginning of using the package and didn't have the need to use BSONIterator yet. Concerning your proposal of OrderedDict(::BSON) is indeed tempting, why not defining EDIT: One more question: |
This PR is in most parts identical to #151 but it makes
DEFAULT_DICT_TYPEa true constant and converts all property calls tobson.handleto calls likehandle(bson), wherebsonis any variable of typeBSON.This is inspired by #146.