Expressions
In most languages, statements contrast with expressions in that statements do not return results and are executed solely for their side effects, while expressions always return a result and often do not have side effects at all. Among imperative programming languages, Algol 68 is one of the few in which a statement can return a result. In languages which mix imperative and functional styles, such as the Lisp family, the distinction between expressions and statements is not made: even expressions executed in sequential contexts solely for their side effects and whose return values are not used are considered 'expressions'. In purely functional programming, there are no statements; everything is an expression.
Read more about this topic: Statement (computer Science)
Famous quotes containing the word expressions:
“Many expressions in the New Testament come naturally to the lips of all Protestants, and it furnishes the most pregnant and practical texts. There is no harmless dreaming, no wise speculation in it, but everywhere a substratum of good sense. It never reflects, but it repents. There is no poetry in it, we may say, nothing regarded in the light of beauty merely, but moral truth is its object. All mortals are convicted by its conscience.”
—Henry David Thoreau (18171862)
“Our books are false by being fragmentary: their sentences are bon mots, and not parts of natural discourse; childish expressions of surprise or pleasure in nature; or, worse, owing a brief notoriety to their petulance, or aversion from the order of nature,being some curiosity or oddity, designedly not in harmony with nature, and purposely framed to excite surprise, as jugglers do by concealing their means.”
—Ralph Waldo Emerson (18031882)
“Whatever offices of life are performed by women of culture and refinement are thenceforth elevated; they cease to be mere servile toils, and become expressions of the ideas of superior beings.”
—Harriet Beecher Stowe (18111896)