Skip to content

Support default argument values #25

@shashi

Description

@shashi

Is this supposed to work?

julia> f = @RuntimeGeneratedFunction(:(f(x,z=3) = y))
ERROR: argument malformed. Got $(Expr(:kw, :z, 3))
Stacktrace:
  [1] error(s::String)
    @ Base ./error.jl:33

Can it be made to work? I'm trying to use this to get stuff like this https://github.com/mcabbott/Tullio.jl/pull/81/files#diff-5e84de38fb08a2615207f16bf896e93ccb8c58bbfa50e6420fc8d54d88daca84R1082 to work since I want to use the @tullio macro inside generated function body... is it technically infeasible?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions