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

wildcard attributes

Open jfb-h opened this issue 4 years ago • 2 comments

How do you access the data-* wildcard attributes in julia?

jfb-h avatar May 27 '21 07:05 jfb-h

How do you access the data-* wildcard attributes in julia?

Using the string literal var:

julia> var"data-s" = 2
2
julia> var"data-s"
2
julia> f(; var"data-f") = var"data-f" * 5
f (generic function with 1 method)

julia> f(var"data-f" = 10)
50

waralex avatar May 27 '21 08:05 waralex

Thanks! Should we leave this open for now for documentation purposes? I couldn't find anything on this in the docs but maybe I'm just blind.

jfb-h avatar May 27 '21 08:05 jfb-h