You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Guide's discussion of Closures has several problems:
It doesn't explain the |&:| syntax at all. The examples have been updated to use it, but the prose still just talks about "||". I think this is the right place to clarify what |:|, |&:| and |&mut:| mean, and perhaps how they relate to the Fn traits (which I don't really understand, which I was looking here for clarification).
The example using "twice()" uses two different syntaxes. First it says:
I understand this is still in flux, and I gather the |:| syntax is going to go away (?) or become mostly optional(?) - either way, a paragraph with a bit of explanation would be useful.
The text was updated successfully, but these errors were encountered:
The Guide's discussion of Closures has several problems:
It doesn't explain the |&:| syntax at all. The examples have been updated to use it, but the prose still just talks about "||". I think this is the right place to clarify what |:|, |&:| and |&mut:| mean, and perhaps how they relate to the Fn traits (which I don't really understand, which I was looking here for clarification).
The example using "twice()" uses two different syntaxes. First it says:
but later it says
Are these equivalent?
I understand this is still in flux, and I gather the |:| syntax is going to go away (?) or become mostly optional(?) - either way, a paragraph with a bit of explanation would be useful.
The text was updated successfully, but these errors were encountered: