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

  • SEARCH
  • Home
  • 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 8802225
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T01:02:22+00:00 2026-06-14T01:02:22+00:00

Let’s say I have 300 functions in one script. Is it bad to access

  • 0

Let’s say I have 300 functions in one script. Is it bad to access the arguments object within each function as opposed to passing in named parameters?

Edit: Okay a lot of you are asking why I would want to do this, it’s really a theoretical question but since you asked is there any reason why i would want to do this, other than variable parameters?

  • 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-06-14T01:02:22+00:00Added an answer on June 14, 2026 at 1:02 am

    It is bad practice to write code that is hard to read and hard for others to understand, maintain or use.

    It is good practice to specify named arguments and give them meaningful, useful, descriptive names whenever you can.

    Also, you should remember that you can declare named arguments even if all are not required. You can then either test arguments.length to see how many arguments were passed or test the values of the specific named arguments to see if they are undefined or not.

    In cases of highly variable arguments, you can also pass an object and let the object self-describe what arguments were passed.

    There are specific cases when the arguments object is useful and when using it is the best way to write clear, concise and safe code, but I’ve never seen a case where all functions declare no named arguments and use only the arguments object. Unless you have some very unusual project, this would generally not be the best way to code for so many functions.

    For performance, it appears that accessing named arguments is also faster than accessing the arguments object in all the major browsers. In this jsperf performance test that just sums the first three arguments passed to a test function, using the named arguments was 2-8x faster than using the arguments object. The exact performance difference likely depends upon exactly what the function is attempting to do, but the arguments object definitely looks slower.

    If you provide more information on the reason why you want to use the arguments object instead of named arguments or why you think it would be beneficial to use the arguments object, then we might be able to offer more concrete advice.

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

Sidebar

Related Questions

Let's say I have one class User, and it has a property of type
Let's say you have access to an email account with the history of received
Let's say I have a file foo.py, and within the file I want to
Let's say, I have an application that access(read/write) the file system(files inside application), Active
Let's say I have a domain object with the following field: private Map<StatType, Double>
Let's say I have 2 functions: void function1(int *ptr) { printf(%d, *ptr); } and
Let's say I have the following function in C#: void ProcessResults() { using (FormProgress
Let's say I have an empty class with a virtual function: class Base {
Let's say I don't have photoshop, but I want to make pattern files (.pat)
Let's say I have a method in java, which looks up a user in

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.