Function (computer programming): Difference between revisions

Content deleted Content added
History: Separate "earliest computers" from "earliest microprocessors", to clarify that the Manchester Baby was one of the earliest (stored-program) computers and the RCS 1802 was an early microprocessor. (It wasn't one of the earliest, and two of the earliest, the Intel 4004 and Intel 4008, have program-counter stacks for... subroutine calls.)
Terminology: PL/I uses procedure for both
Line 18:
==Terminology==
 
Some [[programming language]]s, such as [[COBOL]] and [[BASIC]], make a distinction between functions that return a value (typically called "functions") and those that do not (typically called "subprogram", "subroutine", or "procedure").; Other programming languagessome, such as [[C (programming language)|C]], [[C++]], and [[Rust (programming language)|Rust]], only use the term "function" irrespective of whether they return a value or not; others, such as [[ALGOL 60]] and [[PL/I]], only use the word ''procedure''. Some [[Object-oriented programming|object-oriented]] languages, such as [[Java (programming language)|Java]] and [[C Sharp (programming language)|C#]], refer to functions inside [[Class (computer programming)|classes]] as "[[Method (computer programming)|method]]s".
 
==History==