Content deleted Content added
Aarghdvaark (talk | contribs) same thing said twice with different refs. Deleted one instance but kept ref |
→Subparadigms: make main article links more prominent using {{main}} |
||
Line 30:
===Constraint programming===
{{main|Constraint programming}}
===Domain-specific languages===
{{main|Domain-specific language}}
Well-known examples of declarative
Many markup languages such as [[HTML]], [[MXML]], [[XAML]], [[XSLT]] or other [[user-interface markup language]]s are often declarative. HTML, for example, only describes what should appear on a webpage - it specifies neither [[control flow]] for rendering a page nor the page's possible [[human-computer interaction|interactions with a user]].
Line 40 ⟶ 42:
===Functional programming===
{{main|Functional programming}}
Functional programming languages such as [[Haskell (programming language)|Haskell]], [[Scheme (programming language)|Scheme]], and [[Standard ML|ML]] evaluate expressions via function application. Unlike the related but more imperative paradigm of [[procedural programming]], functional programming places little emphasis on explicit sequencing. Instead, computations are characterised by various kinds of recursive [[higher-order function]] application and [[Function composition (computer science)|composition]], and as such can be regarded simply as a set of mappings between [[Domain_of_a_function|___domain]]s and [[codomain]]s. Many functional languages, including most of those in the ML and Lisp families, are not [[purely functional programming|purely functional]], and thus allow the introduction of [[side effect (computer science)|stateful effects]] in programs.
Line 47 ⟶ 50:
===Logic programming===
{{main|Logic programming}}
===Modeling===
|