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

better handle unknown expression heads in deparse #55789

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

simeonschaub
Copy link
Member

@simeonschaub simeonschaub commented Sep 17, 2024

Now prints unknown expression heads recursively too, similar to
show(::Expr) instead of just dumping s-exprs. Also adds nicer
printing for (escape ...) and (thismodule).

ref #55788

@simeonschaub simeonschaub added compiler:lowering Syntax lowering (compiler front end, 2nd stage) error messages Better, more actionable error messages labels Sep 17, 2024
@Keno
Copy link
Member

Keno commented Sep 17, 2024

Seems like a useful enhancement, but I think there should also be a specific invalid syntax: :escape outside of macro expansion or sth similar error.

Now prints unknown expression heads recursively too, similar to
`show(::Expr)` instead of just dumping s-exprs. Also adds nicer
printing for `(escape ...)` and `(thismodule)`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
compiler:lowering Syntax lowering (compiler front end, 2nd stage) error messages Better, more actionable error messages
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants