-
Notifications
You must be signed in to change notification settings - Fork 39
Fix of #26 #29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix of #26 #29
Conversation
fix issue 26
|
Cool, works now. Thanks to @Roboneet to fix the fix! |
|
Bump |
|
Would be good to have this fix, or is there something blocking? |
|
bump |
|
I just ran into this bug today. Is there anything I can do to get this merged? |
|
Ping @dhairyagandhi96 |
|
Quick look seems to ask whether adding a MacroTools deep is worth the few lines of code it can save |
|
Alternatively, from what I understoood from the code, it seems that just adding this line EDIT: For the sake of completeness, I added a pull request with this alternative, so that you can judge by yourself. |
|
@dhairyagandhi96: where do you see a MacroTools dependency? |
| end | ||
| # implement some of the needed Dict methods | ||
| Base.length(bd::BSONDict) = length(bd.d) | ||
| Base.isempty(bd::BSONDict) = length(bd.d)==0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should isempty be a direct delegation?
Base.isempty(bd::BSONDict) = isempty(bd.d)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes
|
All the overloads for |
|
Ah, now I get it, the other way around you mean. And no, I don't think it is worth it. The code as it stands is very readable. |
|
@DhairyaLGandhi could you merge this or the alternative #73? Would you also consider granting some of the past contributors write access? A lot of good work has been rotting in this repo for too long |
|
actually, I would merge #73 instead for the sole fact that it comes with a test |
|
If we merge this, I can make separate PR with tests so we have the fix there and tested. |
|
Be good to test as well @racinmat ! Thanks! |
|
Tag a release? |
|
Once the tests land? ref #29 (comment) |
|
Seems to have caused a bug in #84, so reverting for now |
|
Oops, sorry about this. But note that I will probably have time to look into this. |
Hopefully correctly this time around, first take was PR JuliaIO#29.
Hopefully correctly this time around, first take was PR JuliaIO#29.
|
Aright, I fixed the issue in #90 (I hope). |
This is an attempt to fix #26 by making
BSONDictits own type. I suspect that something like this could work, but this doesn't. It fixes the behavior seen in #26 but the loading does not work yet.Unfortunately, I don't have time to tinker more, but maybe someone else does?