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

function parameters should be assigned in same block as function body #857

Open
jpacik opened this issue Jan 15, 2019 · 1 comment
Open

Comments

@jpacik
Copy link
Contributor

jpacik commented Jan 15, 2019

The current implementation of a Flux function expression puts the function body in a separate block nested inside the enclosing block where the function parameters are declared. This means that a function's parameters can effectively be reassigned in its own body (see #851). However function parameters need to be immutable inside the function body.

This issue is for refactoring the implementation of Flux function expressions by placing the parameter declarations in the same block as the function body.

Copy link

This issue has had no recent activity and will be closed soon.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants