Skip to content

Clarify and simplify expr data type #135

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

Merged
merged 2 commits into from
Jun 18, 2024
Merged

Clarify and simplify expr data type #135

merged 2 commits into from
Jun 18, 2024

Conversation

hadley
Copy link
Member

@hadley hadley commented Jun 16, 2024

Makeparse_all()$expr a list of expressions, where the length is the number of individual expressions within each top-level expression.

Make`parse_all()$expr` a list of expressions, where the length is the number of individual expressions within each top-level expression.
@hadley hadley requested a review from cderv June 16, 2024 12:56
if (debug) message(src)

if (is.null(call) && !last) {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was a performance optimisation (since we don't really need to set up all the various handlers if there's no code to execute), so removing it will make the code a little slower. However, I plan to set up all the handlers once (instead of once per top-level expression) and this makes it a little bit easier to reason about in the interim.

Copy link
Collaborator

@cderv cderv left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@hadley hadley merged commit 7d54732 into main Jun 18, 2024
13 checks passed
@hadley hadley deleted the parse-types branch June 18, 2024 15:14
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

Successfully merging this pull request may close these issues.

2 participants