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

(WIP): introduce the scope of function parameters #1480

Open
wants to merge 10 commits into
base: master
Choose a base branch
from

Conversation

fabiosantoscode
Copy link
Collaborator

Function parameters inhabit their own scope, a liminal space between the scope outside the function, and the scope within. When a default parameter refers to another variable, it looks to other parameters and outside, but never within the function.

I'm pushing this PR with failing tests first.

Related to: #1478

fabiosantoscode and others added 10 commits December 6, 2023 15:22
Function parameters inhabit their own scope, a liminal space between the
scope outside the function, and the scope within. When a default
parameter refers to another variable, it looks to other parameters and
outside, but never within the function.

I'm pushing this PR with failing tests first.
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
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.

None yet

1 participant