Multi-Paradigm Programming Language: Difference between revisions
Jump to navigation
Jump to search
m (Text replacement - "<ref name=[\w\d\"\-]{1,30}><\/ref>" to " ") |
m (Text replacement - " " to " ") |
||
Line 18: | Line 18: | ||
*** [[procedural programming|procedural]] which groups code into functions, | *** [[procedural programming|procedural]] which groups code into functions, | ||
*** [[logic programming|logic]] which has a particular style of execution model coupled to a particular style of syntax and grammar, and | *** [[logic programming|logic]] which has a particular style of execution model coupled to a particular style of syntax and grammar, and | ||
*** [[symbolic programming|symbolic]] programming which has a particular style of syntax and grammar. <ref> Nørmark, Kurt. ''[http://people.cs.aau.dk/~normark/prog3-03/html/notes/paradigms_themes-paradigm-overview-section.html Overview of the four main programming paradigms]''. Aalborg University, 9 May 2011. Retrieved 22 September 2012. </ref> | *** [[symbolic programming|symbolic]] programming which has a particular style of syntax and grammar. <ref> Nørmark, Kurt. ''[http://people.cs.aau.dk/~normark/prog3-03/html/notes/paradigms_themes-paradigm-overview-section.html Overview of the four main programming paradigms]''. Aalborg University, 9 May 2011. Retrieved 22 September 2012. </ref> | ||
** For example, languages that fall into the '''imperative paradigm''' have two main features: they state the order in which operations occur, with constructs that explicitly control that order, and they allow side effects, in which state can be modified at one point in time, within one unit of code, and then later read at a different point in time inside a different unit of code. The communication between the units of code is not explicit. Meanwhile, in '''object-oriented''' programming, code is organized into [[Object (programming)|objects]] that contain state that is only modified by the code that is part of the object. Most object-oriented languages are also imperative languages. In contrast, languages that fit the '''declarative paradigm''' do not state the order in which to execute operations. Instead, they supply a number of operations that are available in the system, along with the conditions under which each is allowed to execute. The implementation of the language's execution model tracks which operations are free to execute and chooses the order on its own. More at [[Comparison of multi-paradigm programming languages]]. | ** For example, languages that fall into the '''imperative paradigm''' have two main features: they state the order in which operations occur, with constructs that explicitly control that order, and they allow side effects, in which state can be modified at one point in time, within one unit of code, and then later read at a different point in time inside a different unit of code. The communication between the units of code is not explicit. Meanwhile, in '''object-oriented''' programming, code is organized into [[Object (programming)|objects]] that contain state that is only modified by the code that is part of the object. Most object-oriented languages are also imperative languages. In contrast, languages that fit the '''declarative paradigm''' do not state the order in which to execute operations. Instead, they supply a number of operations that are available in the system, along with the conditions under which each is allowed to execute. The implementation of the language's execution model tracks which operations are free to execute and chooses the order on its own. More at [[Comparison of multi-paradigm programming languages]]. | ||
<references/> | <references/> |
Revision as of 07:55, 19 June 2023
A Multi-Paradigm Programming Language is a [[]] that ...
- AKA: Programming_paradigm#Multi-Paradigm.
- See: Symbolic Programming, Comparison of Multi-Paradigm Programming Languages, Programming Language, Execution Model, Side Effect (Computer Science), Imperative Programming, Functional Programming, Declarative Programming, Object-Oriented Programming, Procedural Programming, Logic Programming, Object (Programming).
References
2017
- (Wikipedia, 2017) ⇒ https://en.wikipedia.org/wiki/Programming_paradigm#Multi-paradigm Retrieved:2017-11-7.
- Programming paradigms are a way to classify programming languages based on their features. Languages can be classified into multiple paradigms.
Some paradigms are concerned mainly with implications for the execution model of the language, such as allowing side effects, or whether the sequence of operations is defined by the execution model. Other paradigms are concerned mainly with the way that code is organized, such as grouping a code into units along with the state that is modified by the code. Yet others are concerned mainly with the style of syntax and grammar.
Common programming paradigms include:
- imperative which allows side effects,
- functional which disallows side effects,
- declarative which does not state the order in which operations execute,
- object-oriented which groups code together with the state the code modifies,
- procedural which groups code into functions,
- logic which has a particular style of execution model coupled to a particular style of syntax and grammar, and
- symbolic programming which has a particular style of syntax and grammar. [1]
- For example, languages that fall into the imperative paradigm have two main features: they state the order in which operations occur, with constructs that explicitly control that order, and they allow side effects, in which state can be modified at one point in time, within one unit of code, and then later read at a different point in time inside a different unit of code. The communication between the units of code is not explicit. Meanwhile, in object-oriented programming, code is organized into objects that contain state that is only modified by the code that is part of the object. Most object-oriented languages are also imperative languages. In contrast, languages that fit the declarative paradigm do not state the order in which to execute operations. Instead, they supply a number of operations that are available in the system, along with the conditions under which each is allowed to execute. The implementation of the language's execution model tracks which operations are free to execute and chooses the order on its own. More at Comparison of multi-paradigm programming languages.
- Programming paradigms are a way to classify programming languages based on their features. Languages can be classified into multiple paradigms.
- ↑ Nørmark, Kurt. Overview of the four main programming paradigms. Aalborg University, 9 May 2011. Retrieved 22 September 2012.