"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" Wikipedia on Expression-Oriented Programming.
Statements and expressions.
When ervey line of code has a return value, it's said that you are wriing expressions, and using an EOP style. In constrast statements are lines of code that do not have return values, and are executed for their side effects. When you see statements in code you should think, "This is imperative code,not FP code"
Top comments (0)