Skip to content

quote variable name in UndefVarError and UndefKeywordError#47077

Merged
KristofferC merged 1 commit intomasterfrom
kc/quote_var_error
Oct 6, 2022
Merged

quote variable name in UndefVarError and UndefKeywordError#47077
KristofferC merged 1 commit intomasterfrom
kc/quote_var_error

Conversation

@KristofferC
Copy link
Copy Markdown
Member

An error message like ERROR: UndefVarError: variable not defined can be a bit confusing since the variable name (variable) blends into the text. Therefore I think it makes sense to quote the variable name. Here i opted for ` but I guess one could argue for " as well.

@KristofferC KristofferC added the error messages Better, more actionable error messages label Oct 6, 2022
@KristofferC KristofferC merged commit 950ce91 into master Oct 6, 2022
@KristofferC KristofferC deleted the kc/quote_var_error branch October 6, 2022 20:44
aviatesk added a commit to aviatesk/JET.jl that referenced this pull request Oct 14, 2022
martinholters added a commit to JuliaLang/Compat.jl that referenced this pull request Nov 8, 2022
martinholters added a commit to JuliaLang/Compat.jl that referenced this pull request Nov 9, 2022
martinholters added a commit to JuliaLang/Compat.jl that referenced this pull request Feb 18, 2023
martinholters added a commit to JuliaLang/Compat.jl that referenced this pull request Feb 18, 2023
martinholters added a commit to JuliaLang/Compat.jl that referenced this pull request Feb 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

error messages Better, more actionable error messages

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants