Programming MisconceptionsHomeMisconceptionsConceptsLanguagesTextbooksContributorsAbout
HomeConcepts
Evaluation

Evaluation

To evaluate means to compute the value of an expression.

Related concepts:  ValueExpression

Closest Wikipedia entry:  Evaluation strategy

Authoritative Definition

Wikipedia does not necessarily offer the best fitting definition of a concept. The exact meaning we attribute to the concept of Evaluation is based on principled authoritative sources such as:

Types and Programming Languages - Section 3.5

Misconceptions about Evaluation
9 documented Misconceptions

Any LanguageJavaJavaScriptPythonScratch
Check Yourself
Misconception
EvaluationResultsArePrinted — Java
Evaluating an expression means outputting its result
Misconception
ExpressionsDynamicallyTyped — Java
One has to evaluate an expression to determine its type
Misconception
NoShortCircuit — Java
&& and || always evaluate both operands
Misconception
ToStringPrints — Java
Invoking toString() prints something
Misconception
ComparisonWithBoolLiteral — Python
To test whether an expression is True or False, one must compare it to True or to False
Misconception
MapToBooleanWithIf — Python
To map a boolean expression to a bool, an if statement is necessary
Misconception
NoShortCircuit — Python
and/or always evaluate both operands
Misconception
ReturnCall — Python
Return statements need () around the return value
Misconception
RightToLeftChaining — Python
Chained accesses are invoked from right to left

Find Misconceptions by...

Concept
Programming Language
Notional Machine
Textbook

About

About This Site
Structure and Content of the Inventory
Contributors