Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6599627
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T18:30:57+00:00 2026-05-25T18:30:57+00:00

Im looking for a good explanation of what this term means

  • 0

Im looking for a good explanation of what this term means

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T18:30:57+00:00Added an answer on May 25, 2026 at 6:30 pm

    In programming, formal arguments (also commonly known as ‘formal parameters’) are the arguments a function expects to receive and assigns names to. They are the arguments that generally act similar to local variables, and are explicitly listed in the function definition. For example, in this method:

    def say(words, options)
        options[:repetitions].times { puts words }
        puts "that's all folks!" unless options[:no_footer]
    end
    

    The formal arguments are words and options. There are also some informal arguments, namely repetitions and no_footer. Semantically, we understand these to be arguments to the function, but they are not formal arguments.

    There is nothing specific to ruby about formal arguments, but there is some specific significance. In ruby, and especially Rails, many many methods only have a few formal arguments (and a lot of informal arguments). For example, in this call:

    redirect_to :action => 'show', :id => @entry.id
    

    The receiving method only really has one formal argument, an options hash.

    It’s also worth noting here that ‘formal arguments’ are frequently contrasted with ‘actual arguments’. Actual arguments are simply the values really being passed. So, for example, in this call,

    say "I love ruby", :repetitions => 10, :no_footer => true
    

    The actual arguments are "I love ruby" and {:repetitions => 10, :no_footer => true} and these map onto the formal arguments above, words and options.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Looking for good explanation of why this code raises SyntaxError . def echo(x): return
I am looking for a good explanation of why one would use sliding expiration
How to make this subqueries to good-looking code? And I looking guides about SQL
I'm looking for advice on whether or not this is a good practice. I
I'm looking for a good explanation why one piece of code fails to compile
I am looking for a good introduction to Python namespaces. I found this tutorial
I have been looking for a good explanation of how to implement a password
I'm looking for a good explanation of the need to use multi-threading in graphical
I'm looking for a good article or two, or just an explanation, on how
So I tried searching SO hoping someone had a good explanation of this, with

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.