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

lowering: remove incorrect comprehension eta reduction #39139

Merged
merged 2 commits into from
Jan 11, 2021
Merged

Conversation

vtjnash
Copy link
Sponsor Member

@vtjnash vtjnash commented Jan 7, 2021

But keep it for [f(_) for _ in x], since that would now triggers a
deprecation error (which was previously incorrectly missing for _).

Fixes #18621

But keep it for `[f(_) for _ in x]`, since that would now triggers a
deprecation error (which was previously incorrectly missing for _).

Fixes #18621
src/julia-syntax.scm Outdated Show resolved Hide resolved
@@ -1714,12 +1714,14 @@
((eq? expr argname)
Copy link
Sponsor Member

Choose a reason for hiding this comment

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

Ah, looks like another case where we will need to eventually deprecate _.

Copy link
Sponsor Member Author

Choose a reason for hiding this comment

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

I added a test for this one, since I was not sure it needed to be deprecated. But we can decide that later.

Co-authored-by: Jeff Bezanson <jeff.bezanson@gmail.com>
@vtjnash vtjnash merged commit d69b9b7 into master Jan 11, 2021
@vtjnash vtjnash deleted the jn/18621 branch January 11, 2021 19:25
ElOceanografo pushed a commit to ElOceanografo/julia that referenced this pull request May 4, 2021
But keep it for `[f(_) for _ in x]`, since that would now triggers a
deprecation error (which was previously incorrectly missing for _).

Fixes JuliaLang#18621
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.

Comprehension lowering error
2 participants