-
Notifications
You must be signed in to change notification settings - Fork 102
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
change ordered keyword to dicttype keyword #129
Conversation
lgtm. gotta love when adding generality fixes more problems than it introduces. worth changing minor pkg version for this, even if apparently unused in public code? |
JSON.parse(io::IO; ordered=false) | ||
JSON.parsefile(filename::AbstractString; ordered=false, use_mmap=true) | ||
JSON.parse(s::AbstractString; dicttype=Dict) | ||
JSON.parse(io::IO, dicttype=Dict) |
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 be ;
?
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.
right, fixed
So very clean! |
…ility, and avoids the pseudo-dependency on DataStructures that was causing precompile problems
change ordered keyword to dicttype keyword
While I like this change, I've seen the ordered keyword used in the wild, so the next tag of JSON.jl is going to break some code. Any thoughts on deprecation or informing the user how to fix her code? |
@kmsquire, I couldn't find it in any registered packages. But one could certainly add an |
Thanks, yes, I mentioned that this was in user code. I'll add the exception when I get the chance. |
sorry for the hasty tag, should have cc'ed you sooner on this |
As discussed in #128, this provides more flexibility, and avoids the pseudo-dependency on DataStructures that has been causing precompilation problems.