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

Proposal: Destructuring in lambda parameters #21

Merged
merged 1 commit into from
Oct 18, 2016

Conversation

abreslav
Copy link
Contributor

@abreslav abreslav commented Jun 2, 2016

No description provided.


### Semantics and checks

Semantically, destructured parameters work as if they are normal parameters and a destructuring assignments are performed before the body of the lambda, in the left-to-right order:

Choose a reason for hiding this comment

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

"a destructuring" -> "destructuring"

@orangy
Copy link

orangy commented Jun 2, 2016

Debugging experience is missing, mostly watch/locals windows. Should we see raw value passed into lambda? I think yes, because component functions could be arbitrary and not necessary preserve the full information of the original instance. Also, not all components may be used.

@orangy
Copy link

orangy commented Jun 2, 2016

Also, for debugger, should it step over calls to component functions? How do I step in?

@bashor bashor added the language label Jun 6, 2016
@erokhins
Copy link
Contributor

erokhins commented Jul 2, 2016

Issue: #32

@abreslav abreslav modified the milestone: 1.1 Oct 10, 2016
@yole yole merged commit 9a92972 into master Oct 18, 2016
@udalov udalov deleted the destructuring-in-parameters branch October 18, 2016 13:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants