Skip to content
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

Document block styles #608

Open
timfel opened this issue Apr 11, 2013 · 2 comments
Open

Document block styles #608

timfel opened this issue Apr 11, 2013 · 2 comments

Comments

@timfel
Copy link
Member

timfel commented Apr 11, 2013

Let's document how to treat multiline vs single-line blocks wrt using do ... end or { ... }. Also, let's decide whether to prefer proc, Proc.new, lambda, or -> (I know that procs and lambdas aren't the same, but often it doesn't matter either way, and I want those cases to be consistent). Personally, I prefer proc and using { ... } for single-line and do ... end for multi-line blocks.

@kachick
Copy link
Member

kachick commented Apr 11, 2013

👍

@alex
Copy link
Member

alex commented Apr 11, 2013

I agree with the proposed style.

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

No branches or pull requests

3 participants