micahjsmith / FredData.jl

Pull data from Federal Reserve Economic Data (FRED) directly into Julia
https://micahjsmith.github.io/FredData.jl/dev
Other
64 stars 19 forks source link

Make API more idiomatic #3

Closed micahjsmith closed 6 years ago

micahjsmith commented 8 years ago

Some parts of the FredData.jl API could be made more idiomatic. Notable examples are

I find that the functions used to access data from the FredSeries object are not very intuitive. It may make sense to replace realtime_end with get_realtime_end e.g. One could also access fields by defining methods for getindex and using s[:realtime_end]. (This latter solution allows s[:data] which seems better than df(s)).

Any input is welcomed from those browsing.