In chapter 5 you have a quick blurb on the use of pinning a parameter value in a function definition. I don’t understand why this is needed. Two pages previously you stated that a function being created carries the binding of variables available during its creation. In fact, the example used there includes a variable with the name
Then, on page 44, you call a function passing in a parameter named
name but then apparently have to pin it to use its value in the returned function. Why is pinning required in this context but not in the previous context? I don’t see any difference between the two.