Expression-oriented programming language: Difference between revisions

Content deleted Content added
Canonical Objection: choice of assignment notation
add template Programming paradigms
Line 1:
{{Programming paradigms}}An '''expression-oriented programming language''' is a [[programming language]] where (nearly) every construction is an [[expression (programming)|expression]] and thus yields a value. The typical exceptions are [[Macro (computer science)|macro]] definitions, [[preprocessor]] commands, and declarations, which expression-oriented languages often treat as [[statement (programming)|statement]]s rather than expressions. Some expression-oriented languages introduce a [[void return type]] to be yielded by expressions that merely cause [[Side_effect_(computer_science)|side-effects]].
 
[[ALGOL 68]] is an example of an expression-oriented language. [[Pascal programming language|Pascal]] is ''not''. All [[functional programming language]]s are expression-oriented.