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 deal with uneval nodes #21

Merged
merged 1 commit into from
Mar 29, 2019
Merged

Conversation

plexus
Copy link
Contributor

@plexus plexus commented Mar 29, 2019

We now have our own versions of left/right/next that all correctly jump over
uneval nodes, in particular we want to avoid descending into uneval subtrees (as
they may contain gibberish), or call sexp on an uneval node (as that will
outright fail).

See clj-commons/rewrite-clj#70

Closes #20

We now have our own versions of left/right/next that all correctly jump over
uneval nodes, in particular we want to avoid descending into uneval subtrees (as
they may contain gibberish), or call sexp on an uneval node (as that will
outright fail).

See clj-commons/rewrite-clj#70
(recur (next-fn loc))

(= :uneval (rzip/tag loc))
(recur (skip-fn loc))
Copy link
Owner

Choose a reason for hiding this comment

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

Ah, makes sense, glad it's pretty well telegraphed as uneval. By uneval do you mean the #_ reader macro? Wasn't sure what the name meant exactly.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

exactly, uneval == #_ ...

@Olical Olical merged commit 75be70d into Olical:master Mar 29, 2019
@Olical
Copy link
Owner

Olical commented Mar 29, 2019

Released under v1.8.2.

@plexus plexus deleted the more-uneval-fun branch March 29, 2019 12:15
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