Skip to content

Mark unused block parameters. #10130

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

Merged
merged 1 commit into from
Apr 8, 2013
Merged

Mark unused block parameters. #10130

merged 1 commit into from
Apr 8, 2013

Conversation

agis
Copy link
Contributor

@agis agis commented Apr 7, 2013

Ruby 2 💪

@steveklabnik
Copy link
Member

Wouldn't it be better to use _?

@agis
Copy link
Contributor Author

agis commented Apr 7, 2013

That was my initial thought, but then again I thought that it may be sweeter for people who read the code if we take advantage of the "don't care variables" that ruby 2.0 has, in order to make maintenance easier and not hide information regarding the API.

What do you think?

@steveklabnik
Copy link
Member

I personally would just use _, but let's wait for someone else to chime in. I'm not sure what's standard here.

@carlosantoniodasilva
Copy link
Member

I kinda like the idea of named variables to make them more explicit.

carlosantoniodasilva added a commit that referenced this pull request Apr 8, 2013
Mark unused block parameters.
@carlosantoniodasilva carlosantoniodasilva merged commit 0d8a76d into rails:master Apr 8, 2013
@agis agis deleted the patch-2 branch April 8, 2013 13:03
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