Operator
An operator is a symbol or keyword in source code that represents a built-in function.
Related concepts: Function
Closest Wikipedia entry: Operator (computer programming) — In computer programming, operators are constructs defined within programming languages which behave generally like functions, but which differ syntactically or semantically. Common simple examples include arithmetic (e.g. addition with +), comparison (e.g. "greater than" with >), and logical operations (e.g. AND, also written && in some languages). More involved examples include assignment (usually = or :=), field access in a record or object (usually .), and the scope resolution operator (often :: or .).
Misconceptions about Operator28 documented Misconceptions
Check YourselfAssignCompares
= compares two valuesCannotChainAttributeToObjectInstantiation
Method calls, and attribute accesses in general, cannot be chained to a constructor invocation.ComparisonWithBoolLiteral
To test whether an expression is True or False, one must compare it to True or to FalseMapToBooleanWithTernaryOperator
To map a boolean expression to a bool, a ternary conditional operator is necessaryNoAtomicExpression
Expressions must consist of more than one pieceNoShortCircuit
and/or always evaluate both operandsPlusConcatenatesNumbers
The plus operator can concatenate strings and numbers