xKDR / TSFrames.jl

Timeseries in Julia
MIT License
89 stars 22 forks source link

Disallow `Vector{Union{String, Symbol}}` to have both types in a single vector #194

Open siddjain444 opened 2 months ago

siddjain444 commented 2 months ago

This signature is used in many getindex() functions. There are two options to solve this:

chiraganand commented 2 months ago
* Throw an error if both types are present in the input argument. This is what DataFrames.jl does.

My preference is with this because it will be easier to maintain by having less number of functions which behave exactly same except for the argument type. Plus, DataFrames.jl also follows the same approach so it is better to be consistent.