Skip to content

@closure with unnamed anonymous function declared with "function" keyword? #19

@colinxs

Description

@colinxs

Is there a reason why this is disallowed?

@closure function (x,y,z)
    x+a
end

It stems from this assert here:

@assert isexpr(ex.args[1], :call)

Happy to contribute a PR to handle this case, but just wanted to check if there's a reason for that assert. Seems related to #1.

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