Skip to content

Instantly share code, notes, and snippets.

Zachary P Christensen Tokazama

Block or report user

Report or block Tokazama

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
Tokazama / named_array_traits.jl
Created Sep 17, 2019
Ideas for unifying array naming conventions in Julia.
View named_array_traits.jl
import Base: tail
struct Dim{Sym} end
const TimeDim = Dim{:time}()
const ColorDim = Dim{:color}()
struct HasDimNames{T} end
HasDimNames(x::T) where T = HasDimNames(T)
HasDimNames(::Type{T}) where T = HasDimNames{false}()
You can’t perform that action at this time.