Created
April 15, 2022 01:33
-
-
Save dymx101/74288b58145d741e287c6c0252470e8c to your computer and use it in GitHub Desktop.
How values are captured in clousure
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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