Skip to content

Remove quoted.Lambda extractor #9920

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

Conversation

nicolasstucki
Copy link
Contributor

This extractor is by nature unsound because it ignores argument semantics.
Expr.betaReduce provides a sound version of this conversion with a slightly diferent API.

The error messages for this extractors where never good due to the complexity of its signature.

This kind of unsafe transformations should be performed on the reflection API instead.

This extractor is by nature unsound because it ignores argument semantics.
`Expr.betaReduce` provides a sound version of this conversion with a slightly diferent API.

The error messages for this extractors where never good due to the complexity of its signature.

This kind of unsafe transformations should be performed on the reflection API instead.
@nicolasstucki nicolasstucki self-assigned this Sep 30, 2020
@nicolasstucki nicolasstucki marked this pull request as ready for review September 30, 2020 14:08
@nicolasstucki
Copy link
Contributor Author

nicolasstucki commented Sep 30, 2020

This was added to have a way to transform the body inside a lambda (or any after a binding). Now we can do it with ExprMap. I'm considering adding a method on Expr to map the direct children but I still need to figure out what would its interface look like.

Copy link
Contributor

@liufengyun liufengyun left a comment

Choose a reason for hiding this comment

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

LGTM

@liufengyun liufengyun merged commit c40ef6e into scala:master Sep 30, 2020
@liufengyun liufengyun deleted the remove-quoted-Lambda-extractor branch September 30, 2020 14:27
@Kordyjan Kordyjan added this to the 3.0.0 milestone Aug 2, 2023
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.

3 participants