Skip to content

RFC: Deprecate functionality to push! tuples onto DefaultDict, DefaultOrderedDict#254

Open
kmsquire wants to merge 1 commit intomasterfrom
kms/deprecate_push_tuple
Open

RFC: Deprecate functionality to push! tuples onto DefaultDict, DefaultOrderedDict#254
kmsquire wants to merge 1 commit intomasterfrom
kms/deprecate_push_tuple

Conversation

@kmsquire
Copy link
Copy Markdown
Member

  • For Base.Dict, only Pairs can be pushed.
  • To make Default*Dicts consistent, deprecate this functionality

This would affect Gadfly, and in particular, fixing the deprecations would make the code somewhat less readable. (see kmsquire/Gadfly.jl@b885108)

An alternative would be to add the ability to push tuples (and maybe other possible pair datatypes) to Base Julia.

…redDict

* For Base.Dict, only Pairs can be pushed.
* To make Default*Dicts consistent, deprecate this functionality
@codecov-io
Copy link
Copy Markdown

codecov-io commented Jan 16, 2017

Current coverage is 92.76% (diff: 0.00%)

Merging #254 into master will decrease coverage by 0.11%

@@             master       #254   diff @@
==========================================
  Files            31         32     +1   
  Lines          2485       2488     +3   
  Methods           0          0          
  Messages          0          0          
  Branches          0          0          
==========================================
  Hits           2308       2308          
- Misses          177        180     +3   
  Partials          0          0          

Powered by Codecov. Last update 0d99898...7f7ca16

@tkelman
Copy link
Copy Markdown
Contributor

tkelman commented Mar 18, 2017

I forget, was Gadfly the only thing that broke when these were accidentally removed?

Might be good to only add new deprecations after a last 0.4-compatible release is made and master goes 0.5-only, since many other packages have already dropped 0.4 support and wouldn't necessarily fix any newly introduced deprecations there.

@kmsquire
Copy link
Copy Markdown
Member Author

After thinking about this, my preference would actually be to try to add back support for creating Dicts from tuples to base.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants