Talk:Procedural programming: Difference between revisions

Content deleted Content added
"Procedural" v. "Imperative" (merge?): statements and state vs. procedures (unit type functions)
Line 19:
:I think an assembly language program would be imperative, but might not be procedural. So don't merge as they are different concepts. But any 3GL which is imperative should also be procedural. [[User:Aarghdvaark|Aarghdvaark]] ([[User talk:Aarghdvaark|talk]]) <small>—Preceding [[Wikipedia:Signatures|comment]] was added at 22:49, 24 December 2007 (UTC)</small><!--Template:Undated--> <!--Autosigned by SineBot-->
::I agree that the distinction is subtle, and that assembly language programs are imperative but not procedural but that if the language has procedures (i.e., [[void type|void]] or [[unit type]] functions, it qualifies as procedural. Generally, imperative programming is a paradigm based upon statements and statement types with sequencing, whereas procedural programming is based upon function application with "no return value", i.e., procedure calls. (In functional programming, that should properly be unit type.)
::I think high-level imperative programming languages are ''de facto'' procedural because AFAIK they all include function application, but there are imperative '''features''' that are not intrinsically related to functions. For example, associated features of a programming language such as mutable state, especially assignment, are also referred to as "imperative" in programming language parlance, but I don't think these are necessarily procedural features. [[User:Banazir|Banazir]] ([[User talk:Banazir|talk]]) 22:59, 21 April 2010 (UTC)
 
I think high-level imperative programming languages are ''de facto'' procedural because AFAIK they all include function application, but there are imperative '''features''' that are not intrinsically related to functions. For example, associated features of a programming language such as mutable state, especially assignment, are also referred to as "imperative" in programming language parlance, but I don't think these are necessarily procedural features. [[User:Banazir|Banazir]] ([[User talk:Banazir|talk]]) 22:59, 21 April 2010 (UTC)
 
==Rewrite==