Skip to content

A reminder that a block is a single expr in closures #7003

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed

A reminder that a block is a single expr in closures #7003

wants to merge 1 commit into from

Conversation

alco
Copy link
Contributor

@alco alco commented Jun 8, 2013

This is something that's only been briefly mentioned in the beginning of
the tutorial and all of the closure examples within this subsection
include only one expression between { and }.

This is something that's only been briefly mentioned in the beginning of
the tutorial and all of the closure examples within this subsection
include only one expression between { and }.
@bstrie
Copy link
Contributor

bstrie commented Jun 8, 2013

We do explain the idea of a block elsewhere in the tutorial, but I'm fine with repeating it here so as to drive home the idea that || foo and || { foo } don't require any gymnastics to be equivalent.

bors added a commit that referenced this pull request Jun 8, 2013
This is something that's only been briefly mentioned in the beginning of
the tutorial and all of the closure examples within this subsection
include only one expression between { and }.
@bors bors closed this Jun 8, 2013
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.

3 participants