Skip to content

Conversation

@sethkrasnianski
Copy link
Contributor

When writing a method's signature (declaring the method), the values being passed to a method are called parameters, not arguments. When calling a method, the values passed to the call are formally known as arguments. This is a general misnomer in the programming community. I've corrected all relevant instances.

Example of parameters:

def some_method_with_parameters(param1, param2)
    param1 + param2
end

Example of arguments:

some_method_with_parameters(1, 2)

@meagar
Copy link
Contributor

meagar commented Oct 26, 2014

👍

@bbatsov
Copy link
Collaborator

bbatsov commented Oct 26, 2014

You should also update the names of related links.

@sethkrasnianski
Copy link
Contributor Author

Gotcha, I'll look into that shortly and update the PR later on.

@sethkrasnianski sethkrasnianski force-pushed the sjk/method-verbiage branch 2 times, most recently from 4d6bce4 to 7af4882 Compare October 26, 2014 23:54
@sethkrasnianski
Copy link
Contributor Author

Links are all set @bbatsov. Also amended some that I missed. All incorrect instances are accountable now.

@sethkrasnianski
Copy link
Contributor Author

Any idea when you will be merging? No immediate rush, just wanted to understand your merging process.

README.md Outdated
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure about this - parameters are just names and you can really modify them. You can only modify the actual arguments.

@sethkrasnianski
Copy link
Contributor Author

I changed those two instances that didn't make sense back to arguments and updated the PR.

bbatsov added a commit that referenced this pull request Nov 11, 2014
Changed incorrect instances of 'arguments' to 'parameters'
@bbatsov bbatsov merged commit 2e86ea3 into rubocop:master Nov 11, 2014
@bbatsov
Copy link
Collaborator

bbatsov commented Nov 11, 2014

👍

marocchino added a commit to marocchino/ruby-style-guide that referenced this pull request Dec 3, 2014
bbatsov added a commit that referenced this pull request Dec 3, 2014
Change inside of method (related #378)
marocchino pushed a commit to marocchino/ruby-style-guide that referenced this pull request Aug 11, 2015
Changed incorrect instances of 'arguments' to 'parameters'
marocchino added a commit to marocchino/ruby-style-guide that referenced this pull request Aug 11, 2015
marocchino pushed a commit to marocchino/ruby-style-guide that referenced this pull request Aug 11, 2015
shyouhei pushed a commit to shyouhei/ruby-style-guide that referenced this pull request Nov 11, 2015
Changed incorrect instances of 'arguments' to 'parameters'
shyouhei pushed a commit to shyouhei/ruby-style-guide that referenced this pull request Nov 11, 2015
shyouhei pushed a commit to shyouhei/ruby-style-guide that referenced this pull request Nov 11, 2015
ellimist pushed a commit to ellimist/ruby-style-guide that referenced this pull request Mar 15, 2017
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