Dictionaries.jl icon indicating copy to clipboard operation
Dictionaries.jl copied to clipboard

Enable `getproperty` for `Symbol` keys

Open andyferris opened this issue 4 years ago • 3 comments
trafficstars

This enables convenient access to dictionaries with Symbol keys. One potential use case is the rows or columns of a table, similar to a dataframe.

andyferris avatar Feb 06 '21 05:02 andyferris

Codecov Report

Merging #43 (80a2f3b) into master (aeab543) will decrease coverage by 0.16%. The diff coverage is 33.33%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #43      +/-   ##
==========================================
- Coverage   70.34%   70.18%   -0.17%     
==========================================
  Files          19       19              
  Lines        1703     1707       +4     
==========================================
  Hits         1198     1198              
- Misses        505      509       +4     
Impacted Files Coverage Δ
src/indexing.jl 53.84% <0.00%> (-3.54%) :arrow_down:
src/Indices.jl 81.22% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update aeab543...80a2f3b. Read the comment docs.

codecov[bot] avatar Feb 06 '21 05:02 codecov[bot]

Bump @andyferris :)

aplavin avatar Mar 02 '23 17:03 aplavin

Seconding the bump on this, a Dictionary with getproperty on keys would be perfect for seamless switching between Dictionary and NamedTuple for runtime/compilation tradeoffs, e.g. in DimensionalData.jl DimStack.

rafaqz avatar Dec 12 '23 13:12 rafaqz