Skip to content

docs: document closure-by-reference behavior and loop variable gotcha#82

Open
alexanderxfgl-bit wants to merge 1 commit intoluz-lang:masterfrom
alexanderxfgl-bit:docs/closure-gotcha
Open

docs: document closure-by-reference behavior and loop variable gotcha#82
alexanderxfgl-bit wants to merge 1 commit intoluz-lang:masterfrom
alexanderxfgl-bit:docs/closure-gotcha

Conversation

@alexanderxfgl-bit
Copy link
Copy Markdown
Contributor

Closes #5

Adds docs/language/functions.md documenting:

  • Closure-by-reference behavior (same as Python/JavaScript)
  • The loop variable gotcha with example
  • The capture() workaround pattern
  • Default parameter snapshotting alternative

@Elabsurdo984
Copy link
Copy Markdown
Collaborator

Hi, your pull request is correct. Apologies for not notifying you about this; currently, the documentation repository is separate from the language. If you'd like, you can submit your pull request to https://github.com/luz-lang/luzdocs. Thank you for your contribution.

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.

2 participants