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

convenience constructors for Tables.Schema

Open jrevels opened this issue 1 year ago • 1 comments

ref https://github.com/beacon-biosignals/Legolas.jl/pull/54#discussion_r1005573216

copy/pasting @ericphanson 's comment:

Random thought: if we are going to be using Tables.Schema a lot more (not sure if we are yet), it could be nice to upstream an Tables.@Schema(a::Int, b::Float64, c::String) that expands to Tables.Schema((:a, :b, :c), (Int, Float64, String)), maybe also a begin/end form like

Tables.@Schema begin
    a::Int
    b::Float64
    c::String
end

jrevels avatar Oct 26 '22 15:10 jrevels