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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T20:56:26+00:00 2026-05-11T20:56:26+00:00

Why do some languages differentiate between methods that return a value and methods that

  • 0

Why do some languages differentiate between methods that return a value and methods that don’t?

i.e. in Oracle’s PL/SQL, where the primary difference between a function and a procedure is that the function must return a value, and the procedure must not.

Likewise for languages that don’t, why not?


EDIT: I have found a related question that might interest people reading this question:

  • Expression Versus Statement
  • 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-11T20:56:26+00:00Added an answer on May 11, 2026 at 8:56 pm

    Because in the original conceptions of Computer Science theory and practice, Functions and Subroutines had virtually nothing to do with each other.

    FORTRAN is usually credited as the first language that implemented both of these and demonstrated the distinctions. (Early LISP had a somewhat opposing role in this also, but it had little impact outside of academia).

    Following from the traditions of mathematics (which CS was still part of in the 60’s) functions were only seen as the encapsulation of parametrized mathematical calculations solely intended to return a value into a larger expression. That you could call it “bare” (F = AZIMUTH(SECONDS)) was merely a trivial use case.

    Subroutines, on the other hand were seen as a way to name a group of statements meant to have some effect. Parameters were a huge boost to their usability and the only reason that they were allowed to return modified parameter values was so that they could report their status without having to rely on global variables.

    So, they really had no conceptual connection, other than encapsulation and parameters.

    The real question, is: “How did so many developers come to see them as the same?”

    And the answer to that is C.

    When K+R originally designed their high-level macro assembler type language for the PDP-11 (may have started on the PDP-8?), they had no delusions of hardware independence. Virtually every “unique” feature of the language was a reflection of the PDP machine language and architecture (see i++ and –i). One of these was the realization that functions and subroutines were implemented identically in the PDP except that the caller just ignored the return value (in R0 [, R1]) for subroutines.

    Thus was born the void pointer, and after the C language had taken over the whole world of programming, with it came the misperception that this HW/OS implementation artifact (though true on almost every subsequent platform) was the same as the language semantics.

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

Sidebar

Ask A Question

Stats

  • Questions 148k
  • Answers 148k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer $(this).siblings().hide(); Traversing/Siblings May 12, 2026 at 9:26 am
  • Editorial Team
    Editorial Team added an answer The config information is a matter of taste. But it… May 12, 2026 at 9:26 am
  • Editorial Team
    Editorial Team added an answer This is part of the Microsoft.SqlServer.ManagedDTS assembly and inside microsoft.sqlserver.manageddts.dll,… May 12, 2026 at 9:26 am

Related Questions

Some text before the code so that the question summary isn't mangled. class Tree
First of all, there are many cases where Sleep() is misused , for example
I am planning on putting up a web service, or some other service exposed
This is not a question of what is boxing and unboxing, it is rather

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.