Content deleted Content added
→Examples: Replaced {{unreferenced}} with {{more citations needed}} and other General fixes |
Jerryobject (talk | contribs) m WP:LINKs update-standardize. |
||
(7 intermediate revisions by 7 users not shown) | |||
Line 1:
{{Programming paradigms}}▼
{{Notability|date=July 2022}}
An '''expression-oriented programming language''' is a [[programming language]] in which every (or nearly every) construction is an [[
[[Lisp (programming language)|Lisp]]<ref name=":0">{{Cite journal |
All [[functional programming
==Criticism and prevention==
{{Synthesis|date=July 2022}}
{{See also|Assignment (computer science)#Assignment versus equality|Relational operator#Confusion with assignment operators}}
Critics, including language designers,<ref>[https://www.oracle.com/java/technologies/javase/codeconventions-programmingpractices.html#547 Java Code Conventions "10.4 Variable Assignments"]</ref>{{Failed verification|date=July 2022}} blame expression-orientation for an entire class of [[software bug|programming mistakes]] wherein a programmer accidentally codes an [[
The designers of [[Ada (programming language)|Ada]] and [[Java (programming language)|Java]] prevent this type of mistake by restricting [[
The designers of [[Python (programming language)|Python]] implemented assignment as a statement rather than an expression, thus prohibiting assignment from nesting inside any other statement or expression.<ref>[https://docs.python.org/3/reference/simple_stmts.html#assignment The Python Language Reference "6.2. Assignment statements"]</ref> (Until version 3.8 added 'assignment expressions', with a different syntax.<ref>[https://www.python.org/dev/peps/pep-0572/ "PEP 572: Assignment Expressions"]</ref>)
Line 23 ⟶ 22:
{{Expand section|date=February 2018}}
*[[ALGOL 68]]
*[[BLISS]]
*[[Icon (programming language)|Icon]]
*[[Lisp (programming language)|Lisp]]<ref name=":0" />
Line 29:
*[[Rebol]]
*[[Ruby (programming language)|Ruby]]
*[[
*[[Erlang (programming language)|Erlang]]
*[[Haskell]]
*[[Rust (programming language)|Rust]]<ref>{{Cite web |title=Functions - The Rust Programming Language |url=https://web.mit.edu/rust-lang_v1.25/arch/amd64_ubuntu1404/share/doc/rust/html/book/first-edition/functions.html#expressions-vs-statements |access-date=2022-07-06 |website=web.mit.edu}}</ref>
*[[Scala (programming language)|Scala]]
*[[Smalltalk]]
*[[Kotlin (programming language)|Kotlin]]
*[[OCaml]]<ref>{{Cite web |title=COS 326: Functional Programming |url=https://www.cs.princeton.edu/~dpw/courses/cos326-12/notes/type-check.php |access-date=2022-07-06 |website=www.cs.princeton.edu}}</ref>
Line 42 ⟶ 45:
==References==
{{Reflist}}
▲{{Programming paradigms navbox}}
[[Category:Programming language classification]]
|