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 6591145
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T17:23:15+00:00 2026-05-25T17:23:15+00:00

Say I have func_a and func_b which both take one argument, and I want

  • 0

Say I have func_a and func_b which both take one argument, and I want to pass the result of func_b to func_a.

What is the most common way to parenthesize this?

  1. func_a func_b input
  2. func_a func_b(input)
  3. func_a(func_b input)
  4. func_a(func_b(input))
  • 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-25T17:23:16+00:00Added an answer on May 25, 2026 at 5:23 pm

    You’d have to scan source to find the “most common”.

    I try to write what makes sense under the circumstances, but would almost always use either:

    func_a func_b(arg)
    func_a(func_b(arg))
    

    If the functions are named things that “sound like” a sentence or phrase, then I’ll drop as many parens as I can.

    func_a func_b arg
    

    In other words, if it sounds like something I’d say out loud, I’ll write it like I’d say it–a sentence or phrase.

    If it doesn’t sound like something I’d say in real life, needs parens to enhance clarity, etc. then I’ll write it like I’m writing code, because it sounds/looks like code.

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

Sidebar

Related Questions

Say I have three files (template_*.txt): template_x.txt template_y.txt template_z.txt I want to copy them
I have a doubt about if that approach is possible, lets say you want
Here is my problem. I have one file (say, func.inc.php) with autoloader function, registered
Let's say I have a list of objects, and I want to sort it
And I mean this in the easiest way. Say you have a function with
Lets say I have the following one-to-many relationship: Site has many Users User belongs
Lets say i have a form which have the following : Name:TextBox Email:TextBox Age:TextBox
Say I have a function func(i) that creates an object for an integer i,
Lets say have this immutable record type: public class Record { public Record(int x,
Let's say have something like: SELECT energy_produced, energy_consumed, timestamp1 AS timestamp FROM ( SELECT

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.