Skip to content

Instantly share code, notes, and snippets.

@dymx101
Created April 15, 2022 01:33
Show Gist options
  • Save dymx101/74288b58145d741e287c6c0252470e8c to your computer and use it in GitHub Desktop.
Save dymx101/74288b58145d741e287c6c0252470e8c to your computer and use it in GitHub Desktop.
How values are captured in clousure
So values copied when captured using a capture list, while they’re not copied when referenced directly — for example when accessed as properties, or when a local variable is captured within the same scope as it was defined in.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment