Skip to content

Conversation

@vtjnash
Copy link
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
`(,@(map (lambda (v) `(local ,v)) myvars)
(= (tuple ,@vars) ,argname))))))
(cond
((eq? expr argname)
Copy link
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
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

3 participants