Skip to content

Error message to suggest rewriting some syntax as a function call #18

@goretkin

Description

@goretkin

Perhaps it is worth making these work automatically:

@fix "not a call $(_)"
@fix (:not_a_call, _))
@fix (;a=:not_a_call, b=_)))

I think instead they should just error and provide a suggestion to rewrite like

@fix string("a call ", _)
@fix tuple(:a_call, _)
@fix NamedTuple{(:a, :b)}(@fix tuple(:a_call, _))

(the last one requires #17)

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