Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
goretkin opened this issue Dec 2, 2020 · 0 comments
Open

Comments

@goretkin
Copy link
Owner

goretkin commented Dec 2, 2020

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant