Skip to content

keys from expressions in pgf macro #293

@tpapp

Description

@tpapp

When constructing options it would occasionally be useful to define not only values, but also keys with expressions. Currently the only way to do this that I am aware of is

let o = @pgf{}
    push!(o, v => nothing)
    o
end

A possible syntax could be $ interpolation, as in

line_styles = [:solid, :dashed, :dotted]
[@pgf({ $l }) for l in line_styles] # hypothetical feature and syntax

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions