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

non-capturing lambda support #18911

Merged
merged 1 commit into from Jun 16, 2016
Merged

Conversation

rmuir
Copy link
Contributor

@rmuir rmuir commented Jun 16, 2016

Syntax for this was added in #18824 as a stub.

This adds the non-capturing case. Walker just handles it the same array method references. I think we should do this first and iterate (i found some screwy unrelated bugs in casts already just playing around). The capturing case can be a followup.

Semantics are simple:

  • return type is always def
  • argument types default to def unless the user specifies.

@jdconrad
Copy link
Contributor

LGTM!

@jdconrad jdconrad mentioned this pull request Jun 16, 2016
18 tasks
@uschindler
Copy link
Contributor

Is ELambda class still used?

@rmuir
Copy link
Contributor Author

rmuir commented Jun 16, 2016

It was never used. See the TODO in the code. It will be used for captures, because we have to push logic into a node to support that. We have to do analysis first to even know which case it is (or its too crazy).

@uschindler
Copy link
Contributor

Yeah, that what I expected.

@uschindler
Copy link
Contributor

LGTM.

@rmuir rmuir merged commit ccad99f into elastic:master Jun 16, 2016
@clintongormley clintongormley added :Core/Infra/Scripting Scripting abstractions, Painless, and Mustache and removed :Plugin Lang Painless labels Feb 14, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:Core/Infra/Scripting Scripting abstractions, Painless, and Mustache >enhancement v5.0.0-alpha4
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants